#5F2099#5F2099
#5F2099 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.182 H 302.4°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2099 |
|---|---|
| RGB | rgb(95, 32, 153) |
| HSL | hsl(271, 65%, 36%) |
| HSV | hsv(271, 79%, 60%) |
| CMYK | cmyk(37.9%, 79.1%, 0%, 40%) |
| CIE-LAB | lab(28.81, 50.38, -53.83) |
| CIE-LCH | lch(28.81, 73.73, 313.10°) |
| OKLab | oklab(40.92% 0.0974 -0.1536) |
| OKLCH | oklch(40.92% 0.182 302.4) |
| XYZ | xyz(10.9842, 5.7658, 30.6650) |
| Luminance | 0.0577 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.02
Purple (survey)
#7E1E9C
ΔE00 5.84
Indigo
#4B0082
ΔE00 6.11
Indigo Blue
#3A18B1
ΔE00 6.79
Violet Blue
#510AC9
ΔE00 7.16
Purple Blue
#5D21D0
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2099 #5A9920
analogous
#232099 #5F2099 #992097
triadic
#5F2099 #995F20 #20995F
tetradic
#5F2099 #992320 #5A9920 #209799
square
#5F2099 #992320 #5A9920 #209799
split-complementary
#5F2099 #979920 #209923
monochromatic
#200B34 #401566 #5F2099 #7E2BCC #9C57DC
Accessibility & contrast
On white
9.75
#5F2099 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5F2099 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2099
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2099 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2099 | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#53405C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f2099; /* rgb */ color: rgb(95, 32, 153); /* oklch */ color: oklch(40.9% 0.182 302.4);
Tailwind
colors: {
custom: {
50: '#9263b8',
500: '#5f2099',
950: '#000000',
},
}SCSS
$custom: #5f2099; $custom-light: #9263b8; $custom-dark: #000000;
JSON
{
"hex": "#5f2099",
"rgb": {
"r": 95,
"g": 32,
"b": 153
},
"hsl": {
"h": 271.24,
"s": 65.405,
"l": 36.275
},
"oklch": {
"l": 0.40922,
"c": 0.18192,
"h": 302.4
},
"luminance": 0.05766
}Semantic roles & 50–950 ramp
primary
#5F2099
secondary
#88C055
accent
#E83F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80