#5F1FA6#5F1FA6
#5F1FA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.196 H 298.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1FA6 |
|---|---|
| RGB | rgb(95, 31, 166) |
| HSL | hsl(268, 69%, 39%) |
| HSV | hsv(268, 81%, 65%) |
| CMYK | cmyk(42.8%, 81.3%, 0%, 34.9%) |
| CIE-LAB | lab(29.83, 53.93, -60.08) |
| CIE-LCH | lch(29.83, 80.73, 311.91°) |
| OKLab | oklab(41.98% 0.0944 -0.172) |
| OKLCH | oklch(41.98% 0.196 298.8) |
| XYZ | xyz(12.0905, 6.1659, 36.6221) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.71
Violet Blue
#510AC9
ΔE00 5.28
Indigo Blue
#3A18B1
ΔE00 5.62
Purple Blue
#5D21D0
ΔE00 5.81
Purple (survey)
#7E1E9C
ΔE00 6.44
Indigo
#4B0082
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1FA6 #66A61F
analogous
#1F23A6 #5F1FA6 #A21FA6
triadic
#5F1FA6 #A65F1F #1FA65F
tetradic
#5F1FA6 #A61F23 #66A61F #1FA6A2
square
#5F1FA6 #A61F23 #66A61F #1FA6A2
split-complementary
#5F1FA6 #A6A21F #23A61F
monochromatic
#240C3F #411572 #5F1FA6 #7D2BD7 #9C5EE1
Accessibility & contrast
On white
9.40
#5F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#5F1FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1FA6
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1FA6 | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#4D4563
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5f1fa6; /* rgb */ color: rgb(95, 31, 166); /* oklch */ color: oklch(42.0% 0.196 298.8);
Tailwind
colors: {
custom: {
50: '#9464c1',
500: '#5f1fa6',
950: '#000000',
},
}SCSS
$custom: #5f1fa6; $custom-light: #9464c1; $custom-dark: #000000;
JSON
{
"hex": "#5f1fa6",
"rgb": {
"r": 95,
"g": 31,
"b": 166
},
"hsl": {
"h": 268.444,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.41981,
"c": 0.19615,
"h": 298.8
},
"luminance": 0.06166
}Semantic roles & 50–950 ramp
primary
#5F1FA6
secondary
#93C55B
accent
#EB3C98
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81