#5F42E2#5F42E2
#5F42E2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.228 H 283.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #5F42E2 |
|---|---|
| RGB | rgb(95, 66, 226) |
| HSL | hsl(251, 73%, 57%) |
| HSV | hsv(251, 71%, 89%) |
| CMYK | cmyk(58%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(40.93, 53.94, -77.01) |
| CIE-LCH | lch(40.93, 94.02, 305.01°) |
| OKLab | oklab(51.43% 0.052 -0.2218) |
| OKLCH | oklch(51.43% 0.228 283.2) |
| XYZ | xyz(20.3908, 11.8190, 73.1436) |
| Luminance | 0.1182 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.63
Bluish Purple
#703BE7
ΔE00 2.72
Purpley Blue
#5F34E7
ΔE00 2.74
Burple
#6832E3
ΔE00 3.25
Bluey Purple
#6241C7
ΔE00 3.62
Blurple
#5539CC
ΔE00 4.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F42E2 #C5E242
analogous
#4275E2 #5F42E2 #AF42E2
triadic
#5F42E2 #E25F42 #42E25F
tetradic
#5F42E2 #E24275 #C5E242 #42E2AF
square
#5F42E2 #E24275 #C5E242 #42E2AF
split-complementary
#5F42E2 #E2AF42 #75E242
monochromatic
#2D1793 #3D1FC8 #5F42E2 #8C77EA #B9ACF2
Accessibility & contrast
On white
6.24
#5F42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#5F42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F42E2
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F42E2 | 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)
#0065E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#0C6D8E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5f42e2; /* rgb */ color: rgb(95, 66, 226); /* oklch */ color: oklch(51.4% 0.228 283.2);
Tailwind
colors: {
custom: {
50: '#9a79ec',
500: '#5f42e2',
950: '#000000',
},
}SCSS
$custom: #5f42e2; $custom-light: #9a79ec; $custom-dark: #000000;
JSON
{
"hex": "#5f42e2",
"rgb": {
"r": 95,
"g": 66,
"b": 226
},
"hsl": {
"h": 250.875,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.51427,
"c": 0.22785,
"h": 283.2
},
"luminance": 0.1182
}Semantic roles & 50–950 ramp
primary
#5F42E2
secondary
#D5E09F
accent
#F038CF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84