#5F2399#5F2399
#5F2399 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.179 H 302.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2399 |
|---|---|
| RGB | rgb(95, 35, 153) |
| HSL | hsl(271, 63%, 37%) |
| HSV | hsv(271, 77%, 60%) |
| CMYK | cmyk(37.9%, 77.1%, 0%, 40%) |
| CIE-LAB | lab(29.25, 49.14, -53.12) |
| CIE-LCH | lch(29.25, 72.36, 312.77°) |
| OKLab | oklab(41.23% 0.0948 -0.1516) |
| OKLCH | oklch(41.23% 0.179 302) |
| XYZ | xyz(11.0687, 5.9348, 30.6932) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.56
Purple (survey)
#7E1E9C
ΔE00 5.81
Indigo
#4B0082
ΔE00 6.48
Indigo Blue
#3A18B1
ΔE00 6.92
Violet Blue
#510AC9
ΔE00 7.30
Purple Blue
#5D21D0
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2399 #5D9923
analogous
#242399 #5F2399 #992398
triadic
#5F2399 #995F23 #23995F
tetradic
#5F2399 #992423 #5D9923 #239899
square
#5F2399 #992423 #5D9923 #239899
split-complementary
#5F2399 #989923 #239924
monochromatic
#210C35 #401867 #5F2399 #7E2ECB #9C5DDA
Accessibility & contrast
On white
9.60
#5F2399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5F2399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2399
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2399 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#53425D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f2399; /* rgb */ color: rgb(95, 35, 153); /* oklch */ color: oklch(41.2% 0.179 302.0);
Tailwind
colors: {
custom: {
50: '#9265b8',
500: '#5f2399',
950: '#000000',
},
}SCSS
$custom: #5f2399; $custom-light: #9265b8; $custom-dark: #000000;
JSON
{
"hex": "#5f2399",
"rgb": {
"r": 95,
"g": 35,
"b": 153
},
"hsl": {
"h": 270.508,
"s": 62.766,
"l": 36.863
},
"oklch": {
"l": 0.41226,
"c": 0.17879,
"h": 302
},
"luminance": 0.05935
}Semantic roles & 50–950 ramp
primary
#5F2399
secondary
#8BBE59
accent
#E64293
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80