#6E42E2#6E42E2
#6E42E2 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.227 H 288.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #6E42E2 |
|---|---|
| RGB | rgb(110, 66, 226) |
| HSL | hsl(257, 73%, 57%) |
| HSV | hsv(257, 71%, 89%) |
| CMYK | cmyk(51.3%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(42.31, 56.13, -74.69) |
| CIE-LCH | lch(42.31, 93.43, 306.93°) |
| OKLab | oklab(52.74% 0.0728 -0.2146) |
| OKLCH | oklch(52.74% 0.227 288.7) |
| XYZ | xyz(22.1021, 12.7014, 73.2238) |
| Luminance | 0.1270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.39
Purpleish Blue
#6140EF
ΔE00 2.26
Burple
#6832E3
ΔE00 3.27
Purpley Blue
#5F34E7
ΔE00 3.51
Bluey Purple
#6241C7
ΔE00 4.12
Blueviolet
#8A2BE2
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6E42E2 #B6E242
analogous
#4266E2 #6E42E2 #BE42E2
triadic
#6E42E2 #E26E42 #42E26E
tetradic
#6E42E2 #E24266 #B6E242 #42E2BE
square
#6E42E2 #E24266 #B6E242 #42E2BE
split-complementary
#6E42E2 #E2BE42 #66E242
monochromatic
#391793 #4D1FC8 #6E42E2 #9777EA #BFACF2
Accessibility & contrast
On white
5.93
#6E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#6E42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6E42E2
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6E42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6E42E2 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#436C8E
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #6e42e2; /* rgb */ color: rgb(110, 66, 226); /* oklch */ color: oklch(52.7% 0.227 288.7);
Tailwind
colors: {
custom: {
50: '#a27aec',
500: '#6e42e2',
950: '#000000',
},
}SCSS
$custom: #6e42e2; $custom-light: #a27aec; $custom-dark: #000000;
JSON
{
"hex": "#6e42e2",
"rgb": {
"r": 110,
"g": 66,
"b": 226
},
"hsl": {
"h": 256.5,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.52743,
"c": 0.22657,
"h": 288.7
},
"luminance": 0.12702
}Semantic roles & 50–950 ramp
primary
#6E42E2
secondary
#CEE09F
accent
#F038BD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84