#5F2794#5F2794
#5F2794 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 303.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2794 |
|---|---|
| RGB | rgb(95, 39, 148) |
| HSL | hsl(271, 58%, 37%) |
| HSV | hsv(271, 74%, 58%) |
| CMYK | cmyk(35.8%, 73.6%, 0%, 42%) |
| CIE-LAB | lab(29.47, 46.11, -49.70) |
| CIE-LCH | lch(29.47, 67.80, 312.85°) |
| OKLab | oklab(41.25% 0.0921 -0.1415) |
| OKLCH | oklch(41.25% 0.169 303) |
| XYZ | xyz(10.7889, 6.0220, 28.6052) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.89
Purple (survey)
#7E1E9C
ΔE00 5.75
Indigo
#4B0082
ΔE00 6.78
Indigo Blue
#3A18B1
ΔE00 7.75
Darkslateblue
#483D8B
ΔE00 8.05
Violet Blue
#510AC9
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2794 #5C9427
analogous
#292794 #5F2794 #942793
triadic
#5F2794 #945F27 #27945F
tetradic
#5F2794 #942927 #5C9427 #279394
square
#5F2794 #942927 #5C9427 #279394
split-complementary
#5F2794 #939427 #279429
monochromatic
#210D33 #401A64 #5F2794 #7E34C4 #9C60D5
Accessibility & contrast
On white
9.53
#5F2794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5F2794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2794
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2794 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#54415B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f2794; /* rgb */ color: rgb(95, 39, 148); /* oklch */ color: oklch(41.3% 0.169 303.0);
Tailwind
colors: {
custom: {
50: '#9166b4',
500: '#5f2794',
950: '#000000',
},
}SCSS
$custom: #5f2794; $custom-light: #9166b4; $custom-dark: #000000;
JSON
{
"hex": "#5f2794",
"rgb": {
"r": 95,
"g": 39,
"b": 148
},
"hsl": {
"h": 270.826,
"s": 58.289,
"l": 36.667
},
"oklch": {
"l": 0.41254,
"c": 0.16886,
"h": 303
},
"luminance": 0.06022
}Semantic roles & 50–950 ramp
primary
#5F2794
secondary
#8ABB5C
accent
#E24692
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80