#5F1FA7#5F1FA7
#5F1FA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.197 H 298.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1FA7 |
|---|---|
| RGB | rgb(95, 31, 167) |
| HSL | hsl(268, 69%, 39%) |
| HSV | hsv(268, 81%, 65%) |
| CMYK | cmyk(43.1%, 81.4%, 0%, 34.5%) |
| CIE-LAB | lab(29.92, 54.18, -60.53) |
| CIE-LCH | lch(29.92, 81.23, 311.83°) |
| OKLab | oklab(42.07% 0.094 -0.1733) |
| OKLCH | oklch(42.07% 0.197 298.5) |
| XYZ | xyz(12.1826, 6.2027, 37.1071) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.77
Violet Blue
#510AC9
ΔE00 5.15
Indigo Blue
#3A18B1
ΔE00 5.56
Purple Blue
#5D21D0
ΔE00 5.66
Purple (survey)
#7E1E9C
ΔE00 6.50
Indigo
#4B0082
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1FA7 #67A71F
analogous
#1F23A7 #5F1FA7 #A31FA7
triadic
#5F1FA7 #A75F1F #1FA75F
tetradic
#5F1FA7 #A71F23 #67A71F #1FA7A3
square
#5F1FA7 #A71F23 #67A71F #1FA7A3
split-complementary
#5F1FA7 #A7A31F #23A71F
monochromatic
#240C40 #421573 #5F1FA7 #7D2BD8 #9C5FE1
Accessibility & contrast
On white
9.37
#5F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5F1FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1FA7
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1FA7 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4D4664
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5f1fa7; /* rgb */ color: rgb(95, 31, 167); /* oklch */ color: oklch(42.1% 0.197 298.5);
Tailwind
colors: {
custom: {
50: '#9464c2',
500: '#5f1fa7',
950: '#000000',
},
}SCSS
$custom: #5f1fa7; $custom-light: #9464c2; $custom-dark: #000000;
JSON
{
"hex": "#5f1fa7",
"rgb": {
"r": 95,
"g": 31,
"b": 167
},
"hsl": {
"h": 268.235,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.42072,
"c": 0.19717,
"h": 298.5
},
"luminance": 0.06203
}Semantic roles & 50–950 ramp
primary
#5F1FA7
secondary
#94C65C
accent
#EC3C99
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82