#6842CE#6842CE
#6842CE is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.204 H 289.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #6842CE |
|---|---|
| RGB | rgb(104, 66, 206) |
| HSL | hsl(256, 59%, 53%) |
| HSV | hsv(256, 68%, 81%) |
| CMYK | cmyk(49.5%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(40.07, 49.60, -66.90) |
| CIE-LCH | lch(40.07, 83.28, 306.56°) |
| OKLab | oklab(50.5% 0.068 -0.1919) |
| OKLCH | oklch(50.5% 0.204 289.5) |
| XYZ | xyz(18.7945, 11.2949, 59.5704) |
| Luminance | 0.1130 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.39
Bluish Purple
#703BE7
ΔE00 3.49
Blurple
#5539CC
ΔE00 3.54
Blue With A Hint Of Purple
#533CC6
ΔE00 3.69
Burple
#6832E3
ΔE00 3.71
Purpley Blue
#5F34E7
ΔE00 3.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6842CE #A8CE42
analogous
#4262CE #6842CE #AE42CE
triadic
#6842CE #CE6842 #42CE68
tetradic
#6842CE #CE4262 #A8CE42 #42CEAE
square
#6842CE #CE4262 #A8CE42 #42CEAE
split-complementary
#6842CE #CEAE42 #62CE42
monochromatic
#371F77 #4D2BA7 #6842CE #8F73DB #B6A3E7
Accessibility & contrast
On white
6.44
#6842CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#6842CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6842CE
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6842CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6842CE | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#456583
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #6842ce; /* rgb */ color: rgb(104, 66, 206); /* oklch */ color: oklch(50.5% 0.204 289.5);
Tailwind
colors: {
custom: {
50: '#9c79de',
500: '#6842ce',
950: '#000000',
},
}SCSS
$custom: #6842ce; $custom-light: #9c79de; $custom-dark: #000000;
JSON
{
"hex": "#6842ce",
"rgb": {
"r": 104,
"g": 66,
"b": 206
},
"hsl": {
"h": 256.286,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.50499,
"c": 0.2036,
"h": 289.5
},
"luminance": 0.11296
}Semantic roles & 50–950 ramp
primary
#6842CE
secondary
#C4D498
accent
#E246B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83