#5F3CD8#5F3CD8
#5F3CD8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.222 H 285.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5F3CD8 |
|---|---|
| RGB | rgb(95, 60, 216) |
| HSL | hsl(253, 67%, 54%) |
| HSV | hsv(253, 72%, 85%) |
| CMYK | cmyk(56%, 72.2%, 0%, 15.3%) |
| CIE-LAB | lab(38.94, 54.15, -74.56) |
| CIE-LCH | lch(38.94, 92.15, 305.99°) |
| OKLab | oklab(49.74% 0.0586 -0.2146) |
| OKLCH | oklch(49.74% 0.222 285.3) |
| XYZ | xyz(18.7261, 10.6214, 66.0158) |
| Luminance | 0.1062 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 2.11
Blurple
#5539CC
ΔE00 2.35
Burple
#6832E3
ΔE00 2.37
Bluey Purple
#6241C7
ΔE00 2.41
Blue With A Hint Of Purple
#533CC6
ΔE00 3.00
Bluish Purple
#703BE7
ΔE00 3.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F3CD8 #B5D83C
analogous
#3C67D8 #5F3CD8 #AD3CD8
triadic
#5F3CD8 #D85F3C #3CD85F
tetradic
#5F3CD8 #D83C67 #B5D83C #3CD8AD
square
#5F3CD8 #D83C67 #B5D83C #3CD8AD
split-complementary
#5F3CD8 #D8AD3C #67D83C
monochromatic
#311A80 #4424B3 #5F3CD8 #896FE2 #B3A2EC
Accessibility & contrast
On white
6.72
#5F3CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#5F3CD8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F3CD8
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F3CD8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F3CD8 | 1.00 | 6.72 | 3.12 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#246787
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5f3cd8; /* rgb */ color: rgb(95, 60, 216); /* oklch */ color: oklch(49.7% 0.222 285.3);
Tailwind
colors: {
custom: {
50: '#9975e5',
500: '#5f3cd8',
950: '#000000',
},
}SCSS
$custom: #5f3cd8; $custom-light: #9975e5; $custom-dark: #000000;
JSON
{
"hex": "#5f3cd8",
"rgb": {
"r": 95,
"g": 60,
"b": 216
},
"hsl": {
"h": 253.462,
"s": 66.667,
"l": 54.118
},
"oklch": {
"l": 0.49744,
"c": 0.22248,
"h": 285.3
},
"luminance": 0.10622
}Semantic roles & 50–950 ramp
primary
#5F3CD8
secondary
#CAD997
accent
#EA3EC3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84