#5F1FA1#5F1FA1
#5F1FA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.191 H 300.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1FA1 |
|---|---|
| RGB | rgb(95, 31, 161) |
| HSL | hsl(270, 68%, 38%) |
| HSV | hsv(270, 81%, 63%) |
| CMYK | cmyk(41%, 80.7%, 0%, 36.9%) |
| CIE-LAB | lab(29.38, 52.71, -57.79) |
| CIE-LCH | lch(29.38, 78.22, 312.37°) |
| OKLab | oklab(41.53% 0.0959 -0.1652) |
| OKLCH | oklch(41.53% 0.191 300.1) |
| XYZ | xyz(11.6407, 5.9860, 34.2534) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.42
Violet Blue
#510AC9
ΔE00 5.96
Indigo Blue
#3A18B1
ΔE00 5.98
Purple (survey)
#7E1E9C
ΔE00 6.17
Purple Blue
#5D21D0
ΔE00 6.55
Indigo
#4B0082
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1FA1 #61A11F
analogous
#1F20A1 #5F1FA1 #A01FA1
triadic
#5F1FA1 #A15F1F #1FA15F
tetradic
#5F1FA1 #A11F20 #61A11F #1FA1A0
square
#5F1FA1 #A11F20 #61A11F #1FA1A0
split-complementary
#5F1FA1 #A1A01F #20A11F
monochromatic
#220B3A #41156E #5F1FA1 #7D29D4 #9C5BDF
Accessibility & contrast
On white
9.56
#5F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5F1FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1FA1
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1FA1 | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#4F4361
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f1fa1; /* rgb */ color: rgb(95, 31, 161); /* oklch */ color: oklch(41.5% 0.191 300.1);
Tailwind
colors: {
custom: {
50: '#9363be',
500: '#5f1fa1',
950: '#000000',
},
}SCSS
$custom: #5f1fa1; $custom-light: #9363be; $custom-dark: #000000;
JSON
{
"hex": "#5f1fa1",
"rgb": {
"r": 95,
"g": 31,
"b": 161
},
"hsl": {
"h": 269.538,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.41531,
"c": 0.19107,
"h": 300.1
},
"luminance": 0.05986
}Semantic roles & 50–950 ramp
primary
#5F1FA1
secondary
#8FC458
accent
#EB3D95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81