#5F219C#5F219C
#5F219C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.184 H 301.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #5F219C |
|---|---|
| RGB | rgb(95, 33, 156) |
| HSL | hsl(270, 65%, 37%) |
| HSV | hsv(270, 79%, 61%) |
| CMYK | cmyk(39.1%, 78.8%, 0%, 38.8%) |
| CIE-LAB | lab(29.21, 50.71, -55.01) |
| CIE-LCH | lch(29.21, 74.82, 312.67°) |
| OKLab | oklab(41.28% 0.0958 -0.1571) |
| OKLCH | oklch(41.28% 0.184 301.4) |
| XYZ | xyz(11.2625, 5.9208, 31.9955) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.94
Purple (survey)
#7E1E9C
ΔE00 5.92
Indigo
#4B0082
ΔE00 6.45
Indigo Blue
#3A18B1
ΔE00 6.51
Violet Blue
#510AC9
ΔE00 6.76
Purple Blue
#5D21D0
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F219C #5E9C21
analogous
#22219C #5F219C #9C219C
triadic
#5F219C #9C5F21 #219C5F
tetradic
#5F219C #9C2221 #5E9C21 #219C9C
square
#5F219C #9C2221 #5E9C21 #219C9C
split-complementary
#5F219C #9C9C21 #219C22
monochromatic
#210C37 #401669 #5F219C #7E2CCF #9C5BDC
Accessibility & contrast
On white
9.61
#5F219C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5F219C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F219C
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F219C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F219C | 1.00 | 9.61 | 2.18 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#51425E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f219c; /* rgb */ color: rgb(95, 33, 156); /* oklch */ color: oklch(41.3% 0.184 301.4);
Tailwind
colors: {
custom: {
50: '#9364ba',
500: '#5f219c',
950: '#000000',
},
}SCSS
$custom: #5f219c; $custom-light: #9364ba; $custom-dark: #000000;
JSON
{
"hex": "#5f219c",
"rgb": {
"r": 95,
"g": 33,
"b": 156
},
"hsl": {
"h": 270.244,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.4128,
"c": 0.18401,
"h": 301.4
},
"luminance": 0.05921
}Semantic roles & 50–950 ramp
primary
#5F219C
secondary
#8CC158
accent
#E84093
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81