#6C42E2#6C42E2
#6C42E2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.227 H 288.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #6C42E2 |
|---|---|
| RGB | rgb(108, 66, 226) |
| HSL | hsl(256, 73%, 57%) |
| HSV | hsv(256, 71%, 89%) |
| CMYK | cmyk(52.2%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(42.12, 55.83, -75.02) |
| CIE-LCH | lch(42.12, 93.51, 306.66°) |
| OKLab | oklab(52.56% 0.07 -0.2156) |
| OKLCH | oklch(52.56% 0.227 288) |
| XYZ | xyz(21.8560, 12.5745, 73.2122) |
| Luminance | 0.1258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.46
Purpleish Blue
#6140EF
ΔE00 2.05
Burple
#6832E3
ΔE00 3.18
Purpley Blue
#5F34E7
ΔE00 3.33
Bluey Purple
#6241C7
ΔE00 3.98
Blurple
#5539CC
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C42E2 #B8E242
analogous
#4268E2 #6C42E2 #BC42E2
triadic
#6C42E2 #E26C42 #42E26C
tetradic
#6C42E2 #E24268 #B8E242 #42E2BC
square
#6C42E2 #E24268 #B8E242 #42E2BC
split-complementary
#6C42E2 #E2BC42 #68E242
monochromatic
#371793 #4B1FC8 #6C42E2 #9577EA #BFACF2
Accessibility & contrast
On white
5.97
#6C42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#6C42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6C42E2
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C42E2 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#3E6C8E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6c42e2; /* rgb */ color: rgb(108, 66, 226); /* oklch */ color: oklch(52.6% 0.227 288.0);
Tailwind
colors: {
custom: {
50: '#a17aec',
500: '#6c42e2',
950: '#000000',
},
}SCSS
$custom: #6c42e2; $custom-light: #a17aec; $custom-dark: #000000;
JSON
{
"hex": "#6c42e2",
"rgb": {
"r": 108,
"g": 66,
"b": 226
},
"hsl": {
"h": 255.75,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.52559,
"c": 0.22666,
"h": 288
},
"luminance": 0.12576
}Semantic roles & 50–950 ramp
primary
#6C42E2
secondary
#CFE09F
accent
#F038C0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84