#6042E1#6042E1
#6042E1 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.227 H 283.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #6042E1 |
|---|---|
| RGB | rgb(96, 66, 225) |
| HSL | hsl(251, 73%, 57%) |
| HSV | hsv(251, 71%, 88%) |
| CMYK | cmyk(57.3%, 70.7%, 0%, 11.8%) |
| CIE-LAB | lab(40.93, 53.79, -76.44) |
| CIE-LCH | lch(40.93, 93.47, 305.13°) |
| OKLab | oklab(51.42% 0.0536 -0.2201) |
| OKLCH | oklch(51.42% 0.227 283.7) |
| XYZ | xyz(20.3585, 11.8182, 72.4279) |
| Luminance | 0.1182 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.71
Bluish Purple
#703BE7
ΔE00 2.64
Purpley Blue
#5F34E7
ΔE00 2.74
Burple
#6832E3
ΔE00 3.20
Bluey Purple
#6241C7
ΔE00 3.49
Blurple
#5539CC
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042E1 #C3E142
analogous
#4273E1 #6042E1 #B042E1
triadic
#6042E1 #E16042 #42E160
tetradic
#6042E1 #E14273 #C3E142 #42E1B0
square
#6042E1 #E14273 #C3E142 #42E1B0
split-complementary
#6042E1 #E1B042 #73E142
monochromatic
#2E1792 #3F1FC6 #6042E1 #8C77E9 #B9ACF2
Accessibility & contrast
On white
6.24
#6042E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#6042E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042E1
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042E1 | 1.00 | 6.24 | 3.36 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E6
Deuteranopia (green-blind)
#005BDE
Tritanopia (blue-blind)
#166D8D
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6042e1; /* rgb */ color: rgb(96, 66, 225); /* oklch */ color: oklch(51.4% 0.227 283.7);
Tailwind
colors: {
custom: {
50: '#9a79ec',
500: '#6042e1',
950: '#000000',
},
}SCSS
$custom: #6042e1; $custom-light: #9a79ec; $custom-dark: #000000;
JSON
{
"hex": "#6042e1",
"rgb": {
"r": 96,
"g": 66,
"b": 225
},
"hsl": {
"h": 251.321,
"s": 72.603,
"l": 57.059
},
"oklch": {
"l": 0.51421,
"c": 0.22656,
"h": 283.7
},
"luminance": 0.11819
}Semantic roles & 50–950 ramp
primary
#6042E1
secondary
#D4E09F
accent
#EF38CD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84