#5F1EA1#5F1EA1
#5F1EA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.192 H 300.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1EA1 |
|---|---|
| RGB | rgb(95, 30, 161) |
| HSL | hsl(270, 69%, 37%) |
| HSV | hsv(270, 81%, 63%) |
| CMYK | cmyk(41%, 81.4%, 0%, 36.9%) |
| CIE-LAB | lab(29.25, 53.09, -58.00) |
| CIE-LCH | lch(29.25, 78.63, 312.47°) |
| OKLab | oklab(41.44% 0.0967 -0.1659) |
| OKLCH | oklch(41.44% 0.192 300.2) |
| XYZ | xyz(11.6150, 5.9345, 34.2448) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.55
Violet Blue
#510AC9
ΔE00 5.92
Indigo Blue
#3A18B1
ΔE00 5.95
Purple (survey)
#7E1E9C
ΔE00 6.19
Purple Blue
#5D21D0
ΔE00 6.58
Indigo
#4B0082
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1EA1 #60A11E
analogous
#1E1FA1 #5F1EA1 #A01EA1
triadic
#5F1EA1 #A15F1E #1EA15F
tetradic
#5F1EA1 #A11E1F #60A11E #1EA1A0
square
#5F1EA1 #A11E1F #60A11E #1EA1A0
split-complementary
#5F1EA1 #A1A01E #1FA11E
monochromatic
#220B3A #41146D #5F1EA1 #7D28D5 #9C59E0
Accessibility & contrast
On white
9.60
#5F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5F1EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1EA1
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1EA1 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#4F4360
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f1ea1; /* rgb */ color: rgb(95, 30, 161); /* oklch */ color: oklch(41.4% 0.192 300.2);
Tailwind
colors: {
custom: {
50: '#9363be',
500: '#5f1ea1',
950: '#000000',
},
}SCSS
$custom: #5f1ea1; $custom-light: #9363be; $custom-dark: #000000;
JSON
{
"hex": "#5f1ea1",
"rgb": {
"r": 95,
"g": 30,
"b": 161
},
"hsl": {
"h": 269.771,
"s": 68.586,
"l": 37.451
},
"oklch": {
"l": 0.4144,
"c": 0.19199,
"h": 300.2
},
"luminance": 0.05935
}Semantic roles & 50–950 ramp
primary
#5F1EA1
secondary
#8EC457
accent
#EB3C95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81