#5F1F9E#5F1F9E
#5F1F9E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.188 H 301.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1F9E |
|---|---|
| RGB | rgb(95, 31, 158) |
| HSL | hsl(270, 67%, 37%) |
| HSV | hsv(270, 80%, 62%) |
| CMYK | cmyk(39.9%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(29.11, 51.99, -56.40) |
| CIE-LCH | lch(29.11, 76.70, 312.67°) |
| OKLab | oklab(41.26% 0.0968 -0.1612) |
| OKLCH | oklch(41.26% 0.188 301) |
| XYZ | xyz(11.3793, 5.8814, 32.8768) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.29
Purple (survey)
#7E1E9C
ΔE00 6.03
Indigo Blue
#3A18B1
ΔE00 6.24
Violet Blue
#510AC9
ΔE00 6.38
Indigo
#4B0082
ΔE00 6.41
Purple Blue
#5D21D0
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1F9E #5E9E1F
analogous
#1F1F9E #5F1F9E #9E1F9E
triadic
#5F1F9E #9E5F1F #1F9E5F
tetradic
#5F1F9E #9E1F1F #5E9E1F #1F9E9E
square
#5F1F9E #9E1F1F #5E9E1F #1F9E9E
split-complementary
#5F1F9E #9E9E1F #1F9E1F
monochromatic
#210B38 #40156B #5F1F9E #7E29D1 #9C59DE
Accessibility & contrast
On white
9.65
#5F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5F1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1F9E
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1F9E | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#51425F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f1f9e; /* rgb */ color: rgb(95, 31, 158); /* oklch */ color: oklch(41.3% 0.188 301.0);
Tailwind
colors: {
custom: {
50: '#9363bc',
500: '#5f1f9e',
950: '#000000',
},
}SCSS
$custom: #5f1f9e; $custom-light: #9363bc; $custom-dark: #000000;
JSON
{
"hex": "#5f1f9e",
"rgb": {
"r": 95,
"g": 31,
"b": 158
},
"hsl": {
"h": 270.236,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.41264,
"c": 0.18802,
"h": 301
},
"luminance": 0.05881
}Semantic roles & 50–950 ramp
primary
#5F1F9E
secondary
#8CC256
accent
#EA3E93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81