#6042E2#6042E2
#6042E2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.228 H 283.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #6042E2 |
|---|---|
| RGB | rgb(96, 66, 226) |
| HSL | hsl(251, 73%, 57%) |
| HSV | hsv(251, 71%, 89%) |
| CMYK | cmyk(57.5%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(41.01, 54.08, -76.87) |
| CIE-LCH | lch(41.01, 93.98, 305.13°) |
| OKLab | oklab(51.51% 0.0534 -0.2214) |
| OKLCH | oklch(51.51% 0.228 283.6) |
| XYZ | xyz(20.4953, 11.8729, 73.1485) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.59
Bluish Purple
#703BE7
ΔE00 2.60
Purpley Blue
#5F34E7
ΔE00 2.74
Burple
#6832E3
ΔE00 3.21
Bluey Purple
#6241C7
ΔE00 3.61
Blurple
#5539CC
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042E2 #C4E242
analogous
#4274E2 #6042E2 #B042E2
triadic
#6042E2 #E26042 #42E260
tetradic
#6042E2 #E24274 #C4E242 #42E2B0
square
#6042E2 #E24274 #C4E242 #42E2B0
split-complementary
#6042E2 #E2B042 #74E242
monochromatic
#2E1793 #3E1FC8 #6042E2 #8D77EA #B9ACF2
Accessibility & contrast
On white
6.22
#6042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#6042E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042E2
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042E2 | 1.00 | 6.22 | 3.37 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#136D8E
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #6042e2; /* rgb */ color: rgb(96, 66, 226); /* oklch */ color: oklch(51.5% 0.228 283.6);
Tailwind
colors: {
custom: {
50: '#9a79ec',
500: '#6042e2',
950: '#000000',
},
}SCSS
$custom: #6042e2; $custom-light: #9a79ec; $custom-dark: #000000;
JSON
{
"hex": "#6042e2",
"rgb": {
"r": 96,
"g": 66,
"b": 226
},
"hsl": {
"h": 251.25,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.5151,
"c": 0.22773,
"h": 283.6
},
"luminance": 0.11874
}Semantic roles & 50–950 ramp
primary
#6042E2
secondary
#D4E09F
accent
#F038CE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84