#6B42E2#6B42E2
#6B42E2 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.227 H 287.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #6B42E2 |
|---|---|
| RGB | rgb(107, 66, 226) |
| HSL | hsl(255, 73%, 57%) |
| HSV | hsv(255, 71%, 89%) |
| CMYK | cmyk(52.7%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(42.02, 55.68, -75.18) |
| CIE-LCH | lch(42.02, 93.55, 306.52°) |
| OKLab | oklab(52.47% 0.0686 -0.2161) |
| OKLCH | oklch(52.47% 0.227 287.6) |
| XYZ | xyz(21.7350, 12.5121, 73.2066) |
| Luminance | 0.1251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.51
Purpleish Blue
#6140EF
ΔE00 1.96
Burple
#6832E3
ΔE00 3.15
Purpley Blue
#5F34E7
ΔE00 3.24
Bluey Purple
#6241C7
ΔE00 3.92
Blurple
#5539CC
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B42E2 #B9E242
analogous
#4269E2 #6B42E2 #BB42E2
triadic
#6B42E2 #E26B42 #42E26B
tetradic
#6B42E2 #E24269 #B9E242 #42E2BB
square
#6B42E2 #E24269 #B9E242 #42E2BB
split-complementary
#6B42E2 #E2BB42 #69E242
monochromatic
#361793 #4A1FC8 #6B42E2 #9577EA #BEACF2
Accessibility & contrast
On white
6.00
#6B42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#6B42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6B42E2
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B42E2 | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#3B6C8E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6b42e2; /* rgb */ color: rgb(107, 66, 226); /* oklch */ color: oklch(52.5% 0.227 287.6);
Tailwind
colors: {
custom: {
50: '#a07aec',
500: '#6b42e2',
950: '#000000',
},
}SCSS
$custom: #6b42e2; $custom-light: #a07aec; $custom-dark: #000000;
JSON
{
"hex": "#6b42e2",
"rgb": {
"r": 107,
"g": 66,
"b": 226
},
"hsl": {
"h": 255.375,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.52467,
"c": 0.22672,
"h": 287.6
},
"luminance": 0.12513
}Semantic roles & 50–950 ramp
primary
#6B42E2
secondary
#D0E09F
accent
#F038C1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84