#5F1D9F#5F1D9F
#5F1D9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.191 H 300.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1D9F |
|---|---|
| RGB | rgb(95, 29, 159) |
| HSL | hsl(270, 69%, 37%) |
| HSV | hsv(270, 82%, 62%) |
| CMYK | cmyk(40.3%, 81.8%, 0%, 37.6%) |
| CIE-LAB | lab(28.94, 52.98, -57.29) |
| CIE-LCH | lch(28.94, 78.03, 312.76°) |
| OKLab | oklab(41.17% 0.0981 -0.1638) |
| OKLCH | oklch(41.17% 0.191 300.9) |
| XYZ | xyz(11.4151, 5.8147, 33.3151) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.59
Indigo Blue
#3A18B1
ΔE00 6.09
Purple (survey)
#7E1E9C
ΔE00 6.12
Violet Blue
#510AC9
ΔE00 6.17
Indigo
#4B0082
ΔE00 6.31
Purple Blue
#5D21D0
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1D9F #5D9F1D
analogous
#1E1D9F #5F1D9F #9F1D9E
triadic
#5F1D9F #9F5F1D #1D9F5F
tetradic
#5F1D9F #9F1E1D #5D9F1D #1D9E9F
square
#5F1D9F #9F1E1D #5D9F1D #1D9E9F
split-complementary
#5F1D9F #9E9F1D #1D9F1E
monochromatic
#210A37 #40146B #5F1D9F #7E26D3 #9C56E0
Accessibility & contrast
On white
9.71
#5F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5F1D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1D9F
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1D9F | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#50415F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f1d9f; /* rgb */ color: rgb(95, 29, 159); /* oklch */ color: oklch(41.2% 0.191 300.9);
Tailwind
colors: {
custom: {
50: '#9362bc',
500: '#5f1d9f',
950: '#000000',
},
}SCSS
$custom: #5f1d9f; $custom-light: #9362bc; $custom-dark: #000000;
JSON
{
"hex": "#5f1d9f",
"rgb": {
"r": 95,
"g": 29,
"b": 159
},
"hsl": {
"h": 270.462,
"s": 69.149,
"l": 36.863
},
"oklch": {
"l": 0.41172,
"c": 0.19087,
"h": 300.9
},
"luminance": 0.05815
}Semantic roles & 50–950 ramp
primary
#5F1D9F
secondary
#8BC454
accent
#EC3C93
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81