#5D1F9E#5D1F9E
#5D1F9E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.188 H 300.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5D1F9E |
|---|---|
| RGB | rgb(93, 31, 158) |
| HSL | hsl(269, 67%, 37%) |
| HSV | hsv(269, 80%, 62%) |
| CMYK | cmyk(41.1%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(28.84, 51.67, -56.85) |
| CIE-LCH | lch(28.84, 76.83, 312.27°) |
| OKLab | oklab(41.02% 0.0938 -0.1626) |
| OKLCH | oklch(41.02% 0.188 300) |
| XYZ | xyz(11.1742, 5.7756, 32.8672) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.47
Indigo Blue
#3A18B1
ΔE00 5.92
Violet Blue
#510AC9
ΔE00 6.24
Indigo
#4B0082
ΔE00 6.26
Purple (survey)
#7E1E9C
ΔE00 6.39
Purple Blue
#5D21D0
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D1F9E #609E1F
analogous
#1F219E #5D1F9E #9D1F9E
triadic
#5D1F9E #9E5D1F #1F9E5D
tetradic
#5D1F9E #9E1F21 #609E1F #1F9E9D
square
#5D1F9E #9E1F21 #609E1F #1F9E9D
split-complementary
#5D1F9E #9E9D1F #219E1F
monochromatic
#210B38 #3F156B #5D1F9E #7B29D1 #9A59DE
Accessibility & contrast
On white
9.74
#5D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5D1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D1F9E
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D1F9E | 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)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4E425F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5d1f9e; /* rgb */ color: rgb(93, 31, 158); /* oklch */ color: oklch(41.0% 0.188 300.0);
Tailwind
colors: {
custom: {
50: '#9263bc',
500: '#5d1f9e',
950: '#000000',
},
}SCSS
$custom: #5d1f9e; $custom-light: #9263bc; $custom-dark: #000000;
JSON
{
"hex": "#5d1f9e",
"rgb": {
"r": 93,
"g": 31,
"b": 158
},
"hsl": {
"h": 269.291,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.41016,
"c": 0.1877,
"h": 300
},
"luminance": 0.05776
}Semantic roles & 50–950 ramp
primary
#5D1F9E
secondary
#8EC256
accent
#EA3E96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81