#5D1F9D#5D1F9D
#5D1F9D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.187 H 300.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5D1F9D |
|---|---|
| RGB | rgb(93, 31, 157) |
| HSL | hsl(270, 67%, 37%) |
| HSV | hsv(270, 80%, 62%) |
| CMYK | cmyk(40.8%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(28.75, 51.43, -56.39) |
| CIE-LCH | lch(28.75, 76.32, 312.36°) |
| OKLab | oklab(40.93% 0.0941 -0.1612) |
| OKLCH | oklch(40.93% 0.187 300.3) |
| XYZ | xyz(11.0885, 5.7413, 32.4157) |
| Luminance | 0.0574 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.44
Indigo Blue
#3A18B1
ΔE00 6.02
Indigo
#4B0082
ΔE00 6.17
Purple (survey)
#7E1E9C
ΔE00 6.35
Violet Blue
#510AC9
ΔE00 6.38
Purple Blue
#5D21D0
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D1F9D #5F9D1F
analogous
#1F209D #5D1F9D #9C1F9D
triadic
#5D1F9D #9D5D1F #1F9D5D
tetradic
#5D1F9D #9D1F20 #5F9D1F #1F9D9C
square
#5D1F9D #9D1F20 #5F9D1F #1F9D9C
split-complementary
#5D1F9D #9D9C1F #209D1F
monochromatic
#200B37 #3F156A #5D1F9D #7B29D0 #9A58DE
Accessibility & contrast
On white
9.78
#5D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5D1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D1F9D
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D1F9D | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#4E425E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5d1f9d; /* rgb */ color: rgb(93, 31, 157); /* oklch */ color: oklch(40.9% 0.187 300.3);
Tailwind
colors: {
custom: {
50: '#9163bb',
500: '#5d1f9d',
950: '#000000',
},
}SCSS
$custom: #5d1f9d; $custom-light: #9163bb; $custom-dark: #000000;
JSON
{
"hex": "#5d1f9d",
"rgb": {
"r": 93,
"g": 31,
"b": 157
},
"hsl": {
"h": 269.524,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.40927,
"c": 0.18667,
"h": 300.3
},
"luminance": 0.05741
}Semantic roles & 50–950 ramp
primary
#5D1F9D
secondary
#8DC256
accent
#EA3E95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81