#5E1FA8#5E1FA8
#5E1FA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.198 H 297.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5E1FA8 |
|---|---|
| RGB | rgb(94, 31, 168) |
| HSL | hsl(268, 69%, 39%) |
| HSV | hsv(268, 82%, 66%) |
| CMYK | cmyk(44%, 81.5%, 0%, 34.1%) |
| CIE-LAB | lab(29.88, 54.27, -61.20) |
| CIE-LCH | lch(29.88, 81.80, 311.57°) |
| OKLab | oklab(42.04% 0.0922 -0.1753) |
| OKLCH | oklch(42.04% 0.198 297.7) |
| XYZ | xyz(12.1721, 6.1866, 37.5910) |
| Luminance | 0.0619 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.93
Violet Blue
#510AC9
ΔE00 4.95
Indigo Blue
#3A18B1
ΔE00 5.34
Purple Blue
#5D21D0
ΔE00 5.50
Purple (survey)
#7E1E9C
ΔE00 6.73
Indigo
#4B0082
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E1FA8 #69A81F
analogous
#1F25A8 #5E1FA8 #A31FA8
triadic
#5E1FA8 #A85E1F #1FA85E
tetradic
#5E1FA8 #A81F25 #69A81F #1FA8A3
square
#5E1FA8 #A81F25 #69A81F #1FA8A3
split-complementary
#5E1FA8 #A8A31F #25A81F
monochromatic
#240C41 #411574 #5E1FA8 #7B2CD8 #9B60E2
Accessibility & contrast
On white
9.39
#5E1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5E1FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E1FA8
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E1FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E1FA8 | 1.00 | 9.39 | 2.24 | 9.39 |
| #FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#4B4665
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5e1fa8; /* rgb */ color: rgb(94, 31, 168); /* oklch */ color: oklch(42.0% 0.198 297.7);
Tailwind
colors: {
custom: {
50: '#9364c3',
500: '#5e1fa8',
950: '#000000',
},
}SCSS
$custom: #5e1fa8; $custom-light: #9364c3; $custom-dark: #000000;
JSON
{
"hex": "#5e1fa8",
"rgb": {
"r": 94,
"g": 31,
"b": 168
},
"hsl": {
"h": 267.591,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.42044,
"c": 0.19807,
"h": 297.7
},
"luminance": 0.06187
}Semantic roles & 50–950 ramp
primary
#5E1FA8
secondary
#96C65D
accent
#EC3C9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82