#6C42EB Color Information

Hex color code: #6C42EB

The hex color #6C42EB is a dynamic purple with RGB values of (108, 66, 235) and HSL of (255°, 81%, 59%). It is widely used in graphic design.

Try:
Color NameSlate Blue
HEX
#6C42EB
RGB
108, 66, 235
HSL
255°, 81%, 59%
CMYK
54%, 72%, 0%, 8%

Shades

CSS Usage
color: #6C42EB;
background-color: #6C42EB;
border-color: #6C42EB;
box-shadow: 0 0 10px #6C42EB;
border: 2px solid #6C42EB;
Tailwind Usage
bg-[#6C42EB]
text-[#6C42EB]
border-[#6C42EB]
shadow-[0_0_10px_6C42EB]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #6C42EB, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #6C42EB; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #6C42EB; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #6C42EB; background-color: #6C42EB15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #6C42EB20; border-left: 4px solid #6C42EB; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #6C42EB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #6C42EB in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

108, 66, 235

Red: 108 / Green: 66 / Blue: 235

HSL

255°, 81%, 59%

Hue: 255° / Saturation: 81% / Lightness: 59%

CMYK

54%, 72%, 0%, 8%

Cyan: 54% / Magenta: 72% / Yellow: 0% / Key: 8%

What color is #6C42EB?

#6C42EB is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #6C42EB to RGB:

rgb(108, 66, 235)HEX to RGB Converter →

HEX to HSL

Convert #6C42EB to HSL:

hsl(255, 81%, 59%)RGB to HSL Converter →

HEX to CMYK

Convert #6C42EB to CMYK:

cmyk(54%, 72%, 0%, 8%)Color Converter →

Color Meaning and Usage

#6C42EB is a eye-catching purple color with RGB values of 108, 66, 235 and HSL of 255°, 81%, 59%. This highly saturated hue evokes energy and excitement, making it suitable for typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #6C42EB is #C1EB42, creating high-contrast pairings. For softer combinations, try analogous colors like #426CEB.

Use #6C42EB in CSS: color: #6C42EB or background-color: #6C42EB. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #6C42EB

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 3.62:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #6C42EB?

#6C42EB is a eye-catching purple color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #6C42EB?

#6C42EB in RGB is (108, 66, 235) - 108 red, 66 green, and 235 blue.

How to use #6C42EB in CSS?

Use #6C42EB directly in your CSS properties like color or background-color.

What colors go well with #6C42EB?

#C1EB42 (complementary), #426CEB (analogous), and #4315CB (lighter shade) work well with #6C42EB.