#5F296F#5F296F
#5F296F is a dark, vivid purple. Relative luminance 0.052; OKLCH L 38.8% C 0.125 H 317.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #5F296F |
|---|---|
| RGB | rgb(95, 41, 111) |
| HSL | hsl(286, 46%, 30%) |
| HSV | hsv(286, 63%, 44%) |
| CMYK | cmyk(14.4%, 63.1%, 0%, 56.5%) |
| CIE-LAB | lab(27.20, 36.32, -30.14) |
| CIE-LCH | lch(27.20, 47.20, 320.31°) |
| OKLab | oklab(38.8% 0.093 -0.0842) |
| OKLCH | oklch(38.8% 0.125 317.8) |
| XYZ | xyz(8.3811, 5.1668, 15.5917) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 5.18
Grape Purple
#5D1451
ΔE00 7.29
Grape
#6C3461
ΔE00 7.40
Purple
#800080
ΔE00 7.48
Plum Purple
#4E0550
ΔE00 7.88
Rebeccapurple
#663399
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F296F #396F29
analogous
#3C296F #5F296F #6F295C
triadic
#5F296F #6F5F29 #296F5F
tetradic
#5F296F #6F3C29 #396F29 #295C6F
square
#5F296F #6F3C29 #396F29 #295C6F
split-complementary
#5F296F #5C6F29 #296F3C
monochromatic
#130816 #391842 #5F296F #853A9C #A753BF
Accessibility & contrast
On white
10.33
#5F296F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#5F296F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F296F
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F296F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F296F | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#2C426D
Tritanopia (blue-blind)
#5F3548
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #5f296f; /* rgb */ color: rgb(95, 41, 111); /* oklch */ color: oklch(38.8% 0.125 317.8);
Tailwind
colors: {
custom: {
50: '#8f6699',
500: '#5f296f',
950: '#000000',
},
}SCSS
$custom: #5f296f; $custom-light: #8f6699; $custom-dark: #000000;
JSON
{
"hex": "#5f296f",
"rgb": {
"r": 95,
"g": 41,
"b": 111
},
"hsl": {
"h": 286.286,
"s": 46.053,
"l": 29.804
},
"oklch": {
"l": 0.38797,
"c": 0.12544,
"h": 317.8
},
"luminance": 0.05166
}Semantic roles & 50–950 ramp
primary
#5F296F
secondary
#65A153
accent
#D65270
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E