#5F3CD2#5F3CD2
#5F3CD2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.216 H 286.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #5F3CD2 |
|---|---|
| RGB | rgb(95, 60, 210) |
| HSL | hsl(254, 63%, 53%) |
| HSV | hsv(254, 71%, 82%) |
| CMYK | cmyk(54.8%, 71.4%, 0%, 17.6%) |
| CIE-LAB | lab(38.41, 52.44, -71.97) |
| CIE-LCH | lch(38.41, 89.05, 306.08°) |
| OKLab | oklab(49.21% 0.0599 -0.207) |
| OKLCH | oklch(49.21% 0.216 286.1) |
| XYZ | xyz(17.9645, 10.3168, 62.0050) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.81
Blurple
#5539CC
ΔE00 1.83
Blue With A Hint Of Purple
#533CC6
ΔE00 2.41
Purpley Blue
#5F34E7
ΔE00 2.73
Burple
#6832E3
ΔE00 2.82
Bluish Purple
#703BE7
ΔE00 3.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F3CD2 #AFD23C
analogous
#3C64D2 #5F3CD2 #AA3CD2
triadic
#5F3CD2 #D25F3C #3CD25F
tetradic
#5F3CD2 #D23C64 #AFD23C #3CD2AA
square
#5F3CD2 #D23C64 #AFD23C #3CD2AA
split-complementary
#5F3CD2 #D2AA3C #64D23C
monochromatic
#311C78 #4627AA #5F3CD2 #886EDD #B19FE9
Accessibility & contrast
On white
6.85
#5F3CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#5F3CD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F3CD2
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F3CD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F3CD2 | 1.00 | 6.85 | 3.06 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#2C6483
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5f3cd2; /* rgb */ color: rgb(95, 60, 210); /* oklch */ color: oklch(49.2% 0.216 286.1);
Tailwind
colors: {
custom: {
50: '#9875e1',
500: '#5f3cd2',
950: '#000000',
},
}SCSS
$custom: #5f3cd2; $custom-light: #9875e1; $custom-dark: #000000;
JSON
{
"hex": "#5f3cd2",
"rgb": {
"r": 95,
"g": 60,
"b": 210
},
"hsl": {
"h": 254,
"s": 62.5,
"l": 52.941
},
"oklch": {
"l": 0.49206,
"c": 0.21554,
"h": 286.1
},
"luminance": 0.10318
}Semantic roles & 50–950 ramp
primary
#5F3CD2
secondary
#C6D594
accent
#E642BF
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83