#5F2F95#5F2F95
#5F2F95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.160 H 301.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2F95 |
|---|---|
| RGB | rgb(95, 47, 149) |
| HSL | hsl(268, 52%, 38%) |
| HSV | hsv(268, 68%, 58%) |
| CMYK | cmyk(36.2%, 68.5%, 0%, 41.6%) |
| CIE-LAB | lab(30.96, 42.41, -47.89) |
| CIE-LCH | lch(30.96, 63.96, 311.53°) |
| OKLab | oklab(42.34% 0.0833 -0.1363) |
| OKLCH | oklch(42.34% 0.16 301.4) |
| XYZ | xyz(11.1593, 6.6358, 29.1209) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.62
Purple (survey)
#7E1E9C
ΔE00 6.19
Darkslateblue
#483D8B
ΔE00 6.78
Blueberry
#464196
ΔE00 7.80
Ocean Blue
#4F42B5
ΔE00 8.07
Indigo
#4B0082
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2F95 #65952F
analogous
#2F3295 #5F2F95 #922F95
triadic
#5F2F95 #955F2F #2F955F
tetradic
#5F2F95 #952F32 #65952F #2F9592
square
#5F2F95 #952F32 #65952F #2F9592
split-complementary
#5F2F95 #95922F #32952F
monochromatic
#241238 #412066 #5F2F95 #7D3FC2 #9C6DD1
Accessibility & contrast
On white
9.02
#5F2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#5F2F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2F95
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2F95 | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#54465E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5f2f95; /* rgb */ color: rgb(95, 47, 149); /* oklch */ color: oklch(42.3% 0.160 301.4);
Tailwind
colors: {
custom: {
50: '#916bb5',
500: '#5f2f95',
950: '#000000',
},
}SCSS
$custom: #5f2f95; $custom-light: #916bb5; $custom-dark: #000000;
JSON
{
"hex": "#5f2f95",
"rgb": {
"r": 95,
"g": 47,
"b": 149
},
"hsl": {
"h": 268.235,
"s": 52.041,
"l": 38.431
},
"oklch": {
"l": 0.42344,
"c": 0.15971,
"h": 301.4
},
"luminance": 0.06636
}Semantic roles & 50–950 ramp
primary
#5F2F95
secondary
#92B867
accent
#DB4C98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80