#5F3EF2#5F3EF2
#5F3EF2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.250 H 281.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #5F3EF2 |
|---|---|
| RGB | rgb(95, 62, 242) |
| HSL | hsl(251, 87%, 60%) |
| HSV | hsv(251, 74%, 95%) |
| CMYK | cmyk(60.7%, 74.4%, 0%, 5.1%) |
| CIE-LAB | lab(41.67, 60.56, -84.85) |
| CIE-LCH | lch(41.67, 104.25, 305.52°) |
| OKLab | oklab(52.39% 0.0513 -0.2447) |
| OKLCH | oklch(52.39% 0.25 281.8) |
| XYZ | xyz(22.4639, 12.2873, 85.1751) |
| Luminance | 0.1229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 0.50
Bluish Purple
#703BE7
ΔE00 2.55
Purpley Blue
#5F34E7
ΔE00 2.67
Burple
#6832E3
ΔE00 3.31
Light Royal Blue
#3A2EFE
ΔE00 4.33
Purplish Blue
#601EF9
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F3EF2 #D1F23E
analogous
#3E77F2 #5F3EF2 #B93EF2
triadic
#5F3EF2 #F25F3E #3EF25F
tetradic
#5F3EF2 #F23E77 #D1F23E #3EF2B9
square
#5F3EF2 #F23E77 #D1F23E #3EF2B9
split-complementary
#5F3EF2 #F2B93E #77F23E
monochromatic
#290BAA #360FE3 #5F3EF2 #8F77F6 #BEB1FA
Accessibility & contrast
On white
6.07
#5F3EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#5F3EF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F3EF2
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F3EF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F3EF2 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068F7
Deuteranopia (green-blind)
#005CEF
Tritanopia (blue-blind)
#007296
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5f3ef2; /* rgb */ color: rgb(95, 62, 242); /* oklch */ color: oklch(52.4% 0.250 281.8);
Tailwind
colors: {
custom: {
50: '#9d77f8',
500: '#5f3ef2',
950: '#000000',
},
}SCSS
$custom: #5f3ef2; $custom-light: #9d77f8; $custom-dark: #000000;
JSON
{
"hex": "#5f3ef2",
"rgb": {
"r": 95,
"g": 62,
"b": 242
},
"hsl": {
"h": 251,
"s": 87.379,
"l": 59.608
},
"oklch": {
"l": 0.52393,
"c": 0.25004,
"h": 281.8
},
"luminance": 0.12289
}Semantic roles & 50–950 ramp
primary
#5F3EF2
secondary
#DCE9A3
accent
#FE2AD7
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85