#5F1F9B#5F1F9B
#5F1F9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.185 H 301.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1F9B |
|---|---|
| RGB | rgb(95, 31, 155) |
| HSL | hsl(271, 67%, 36%) |
| HSV | hsv(271, 80%, 61%) |
| CMYK | cmyk(38.7%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(28.85, 51.26, -55.00) |
| CIE-LCH | lch(28.85, 75.18, 312.99°) |
| OKLab | oklab(41% 0.0977 -0.1571) |
| OKLCH | oklch(41% 0.185 301.9) |
| XYZ | xyz(11.1243, 5.7794, 31.5335) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.20
Purple (survey)
#7E1E9C
ΔE00 5.92
Indigo
#4B0082
ΔE00 6.15
Indigo Blue
#3A18B1
ΔE00 6.54
Violet Blue
#510AC9
ΔE00 6.82
Purple Blue
#5D21D0
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1F9B #5B9B1F
analogous
#211F9B #5F1F9B #9B1F99
triadic
#5F1F9B #9B5F1F #1F9B5F
tetradic
#5F1F9B #9B211F #5B9B1F #1F999B
square
#5F1F9B #9B211F #5B9B1F #1F999B
split-complementary
#5F1F9B #999B1F #1F9B21
monochromatic
#200B35 #401568 #5F1F9B #7E29CE #9C57DD
Accessibility & contrast
On white
9.74
#5F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5F1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1F9B
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1F9B | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f1f9b; /* rgb */ color: rgb(95, 31, 155); /* oklch */ color: oklch(41.0% 0.185 301.9);
Tailwind
colors: {
custom: {
50: '#9363b9',
500: '#5f1f9b',
950: '#000000',
},
}SCSS
$custom: #5f1f9b; $custom-light: #9363b9; $custom-dark: #000000;
JSON
{
"hex": "#5f1f9b",
"rgb": {
"r": 95,
"g": 31,
"b": 155
},
"hsl": {
"h": 270.968,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.41,
"c": 0.18497,
"h": 301.9
},
"luminance": 0.05779
}Semantic roles & 50–950 ramp
primary
#5F1F9B
secondary
#89C155
accent
#EA3E91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81