#5F2C95#5F2C95
#5F2C95 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.164 H 302.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2C95 |
|---|---|
| RGB | rgb(95, 44, 149) |
| HSL | hsl(269, 54%, 38%) |
| HSV | hsv(269, 70%, 58%) |
| CMYK | cmyk(36.2%, 70.5%, 0%, 41.6%) |
| CIE-LAB | lab(30.41, 43.94, -48.78) |
| CIE-LCH | lch(30.41, 65.66, 312.01°) |
| OKLab | oklab(41.95% 0.0866 -0.1389) |
| OKLCH | oklch(41.95% 0.164 302) |
| XYZ | xyz(11.0435, 6.4041, 29.0823) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.04
Purple (survey)
#7E1E9C
ΔE00 5.97
Darkslateblue
#483D8B
ΔE00 7.26
Indigo
#4B0082
ΔE00 7.67
Indigo Blue
#3A18B1
ΔE00 8.06
Blueberry
#464196
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2C95 #62952C
analogous
#2C2D95 #5F2C95 #932C95
triadic
#5F2C95 #955F2C #2C955F
tetradic
#5F2C95 #952C2D #62952C #2C9593
square
#5F2C95 #952C2D #62952C #2C9593
split-complementary
#5F2C95 #95932C #2D952C
monochromatic
#231037 #411E66 #5F2C95 #7D3AC4 #9C69D3
Accessibility & contrast
On white
9.21
#5F2C95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#5F2C95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2C95
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2C95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2C95 | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#54455D
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5f2c95; /* rgb */ color: rgb(95, 44, 149); /* oklch */ color: oklch(41.9% 0.164 302.0);
Tailwind
colors: {
custom: {
50: '#9169b5',
500: '#5f2c95',
950: '#000000',
},
}SCSS
$custom: #5f2c95; $custom-light: #9169b5; $custom-dark: #000000;
JSON
{
"hex": "#5f2c95",
"rgb": {
"r": 95,
"g": 44,
"b": 149
},
"hsl": {
"h": 269.143,
"s": 54.404,
"l": 37.843
},
"oklch": {
"l": 0.41949,
"c": 0.16369,
"h": 302
},
"luminance": 0.06404
}Semantic roles & 50–950 ramp
primary
#5F2C95
secondary
#90B964
accent
#DE4A96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80