#6042CE#6042CE
#6042CE is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.204 H 286.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #6042CE |
|---|---|
| RGB | rgb(96, 66, 206) |
| HSL | hsl(253, 59%, 53%) |
| HSV | hsv(253, 68%, 81%) |
| CMYK | cmyk(53.4%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(39.31, 48.26, -68.18) |
| CIE-LCH | lch(39.31, 83.53, 305.29°) |
| OKLab | oklab(49.77% 0.0569 -0.1959) |
| OKLCH | oklch(49.77% 0.204 286.2) |
| XYZ | xyz(17.9093, 10.8385, 59.5289) |
| Luminance | 0.1084 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.07
Blurple
#5539CC
ΔE00 2.65
Blue With A Hint Of Purple
#533CC6
ΔE00 2.68
Purpley Blue
#5F34E7
ΔE00 3.82
Burple
#6832E3
ΔE00 3.90
Bluish Purple
#703BE7
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042CE #B0CE42
analogous
#426ACE #6042CE #A642CE
triadic
#6042CE #CE6042 #42CE60
tetradic
#6042CE #CE426A #B0CE42 #42CEA6
square
#6042CE #CE426A #B0CE42 #42CEA6
split-complementary
#6042CE #CEA642 #6ACE42
monochromatic
#321F77 #462BA7 #6042CE #8973DB #B2A3E7
Accessibility & contrast
On white
6.63
#6042CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#6042CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042CE
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042CE | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#326683
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #6042ce; /* rgb */ color: rgb(96, 66, 206); /* oklch */ color: oklch(49.8% 0.204 286.2);
Tailwind
colors: {
custom: {
50: '#9779de',
500: '#6042ce',
950: '#000000',
},
}SCSS
$custom: #6042ce; $custom-light: #9779de; $custom-dark: #000000;
JSON
{
"hex": "#6042ce",
"rgb": {
"r": 96,
"g": 66,
"b": 206
},
"hsl": {
"h": 252.857,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.49768,
"c": 0.20403,
"h": 286.2
},
"luminance": 0.10839
}Semantic roles & 50–950 ramp
primary
#6042CE
secondary
#C7D498
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83