#6042E7#6042E7
#6042E7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.234 H 283.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #6042E7 |
|---|---|
| RGB | rgb(96, 66, 231) |
| HSL | hsl(251, 77%, 58%) |
| HSV | hsv(251, 71%, 91%) |
| CMYK | cmyk(58.4%, 71.4%, 0%, 9.4%) |
| CIE-LAB | lab(41.46, 55.53, -78.98) |
| CIE-LCH | lch(41.46, 96.55, 305.11°) |
| OKLab | oklab(51.96% 0.0524 -0.2276) |
| OKLCH | oklch(51.96% 0.234 283) |
| XYZ | xyz(21.1914, 12.1513, 76.8146) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.00
Bluish Purple
#703BE7
ΔE00 2.52
Purpley Blue
#5F34E7
ΔE00 2.83
Burple
#6832E3
ΔE00 3.35
Bluey Purple
#6241C7
ΔE00 4.24
Blurple
#5539CC
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042E7 #C9E742
analogous
#4276E7 #6042E7 #B242E7
triadic
#6042E7 #E76042 #42E760
tetradic
#6042E7 #E74276 #C9E742 #42E7B2
square
#6042E7 #E74276 #C9E742 #42E7B2
split-complementary
#6042E7 #E7B242 #76E742
monochromatic
#2C149B #3C1BD1 #6042E7 #8E78EE #BBAFF5
Accessibility & contrast
On white
6.12
#6042E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#6042E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042E7
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042E7 | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#006F91
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #6042e7; /* rgb */ color: rgb(96, 66, 231); /* oklch */ color: oklch(52.0% 0.234 283.0);
Tailwind
colors: {
custom: {
50: '#9b79f0',
500: '#6042e7',
950: '#000000',
},
}SCSS
$custom: #6042e7; $custom-light: #9b79f0; $custom-dark: #000000;
JSON
{
"hex": "#6042e7",
"rgb": {
"r": 96,
"g": 66,
"b": 231
},
"hsl": {
"h": 250.909,
"s": 77.465,
"l": 58.235
},
"oklch": {
"l": 0.51959,
"c": 0.23352,
"h": 283
},
"luminance": 0.12153
}Semantic roles & 50–950 ramp
primary
#6042E7
secondary
#D7E3A2
accent
#F434D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85