#5F2F94#5F2F94
#5F2F94 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.159 H 301.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2F94 |
|---|---|
| RGB | rgb(95, 47, 148) |
| HSL | hsl(269, 52%, 38%) |
| HSV | hsv(269, 68%, 58%) |
| CMYK | cmyk(35.8%, 68.2%, 0%, 42%) |
| CIE-LAB | lab(30.89, 42.15, -47.40) |
| CIE-LCH | lch(30.89, 63.43, 311.65°) |
| OKLab | oklab(42.27% 0.0834 -0.1348) |
| OKLCH | oklch(42.27% 0.159 301.7) |
| XYZ | xyz(11.0799, 6.6040, 28.7022) |
| Luminance | 0.0660 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.65
Purple (survey)
#7E1E9C
ΔE00 6.18
Darkslateblue
#483D8B
ΔE00 6.78
Blueberry
#464196
ΔE00 7.85
Ocean Blue
#4F42B5
ΔE00 8.20
Indigo
#4B0082
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2F94 #64942F
analogous
#2F3194 #5F2F94 #912F94
triadic
#5F2F94 #945F2F #2F945F
tetradic
#5F2F94 #942F31 #64942F #2F9491
square
#5F2F94 #942F31 #64942F #2F9491
split-complementary
#5F2F94 #94912F #31942F
monochromatic
#231137 #412066 #5F2F94 #7D3EC2 #9C6DD1
Accessibility & contrast
On white
9.05
#5F2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#5F2F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2F94
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2F94 | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#54465D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5f2f94; /* rgb */ color: rgb(95, 47, 148); /* oklch */ color: oklch(42.3% 0.159 301.7);
Tailwind
colors: {
custom: {
50: '#916bb4',
500: '#5f2f94',
950: '#000000',
},
}SCSS
$custom: #5f2f94; $custom-light: #916bb4; $custom-dark: #000000;
JSON
{
"hex": "#5f2f94",
"rgb": {
"r": 95,
"g": 47,
"b": 148
},
"hsl": {
"h": 268.515,
"s": 51.795,
"l": 38.235
},
"oklch": {
"l": 0.42267,
"c": 0.15854,
"h": 301.7
},
"luminance": 0.06604
}Semantic roles & 50–950 ramp
primary
#5F2F94
secondary
#91B867
accent
#DB4D97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80