#5F2299#5F2299
#5F2299 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.180 H 302.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2299 |
|---|---|
| RGB | rgb(95, 34, 153) |
| HSL | hsl(271, 64%, 37%) |
| HSV | hsv(271, 78%, 60%) |
| CMYK | cmyk(37.9%, 77.8%, 0%, 40%) |
| CIE-LAB | lab(29.10, 49.56, -53.37) |
| CIE-LCH | lch(29.10, 72.83, 312.88°) |
| OKLab | oklab(41.12% 0.0957 -0.1523) |
| OKLCH | oklch(41.12% 0.18 302.1) |
| XYZ | xyz(11.0397, 5.8768, 30.6835) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.72
Purple (survey)
#7E1E9C
ΔE00 5.81
Indigo
#4B0082
ΔE00 6.35
Indigo Blue
#3A18B1
ΔE00 6.87
Violet Blue
#510AC9
ΔE00 7.25
Purple Blue
#5D21D0
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2299 #5C9922
analogous
#242299 #5F2299 #992298
triadic
#5F2299 #995F22 #22995F
tetradic
#5F2299 #992422 #5C9922 #229899
square
#5F2299 #992422 #5C9922 #229899
split-complementary
#5F2299 #989922 #229924
monochromatic
#210C35 #401767 #5F2299 #7E2DCB #9C5BDB
Accessibility & contrast
On white
9.65
#5F2299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5F2299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2299
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2299 | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#53415D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f2299; /* rgb */ color: rgb(95, 34, 153); /* oklch */ color: oklch(41.1% 0.180 302.1);
Tailwind
colors: {
custom: {
50: '#9264b8',
500: '#5f2299',
950: '#000000',
},
}SCSS
$custom: #5f2299; $custom-light: #9264b8; $custom-dark: #000000;
JSON
{
"hex": "#5f2299",
"rgb": {
"r": 95,
"g": 34,
"b": 153
},
"hsl": {
"h": 270.756,
"s": 63.636,
"l": 36.667
},
"oklch": {
"l": 0.41122,
"c": 0.17986,
"h": 302.1
},
"luminance": 0.05877
}Semantic roles & 50–950 ramp
primary
#5F2299
secondary
#8ABF58
accent
#E74192
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80