#5F2696#5F2696
#5F2696 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.172 H 302.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2696 |
|---|---|
| RGB | rgb(95, 38, 150) |
| HSL | hsl(271, 60%, 37%) |
| HSV | hsv(271, 75%, 59%) |
| CMYK | cmyk(36.7%, 74.7%, 0%, 41.2%) |
| CIE-LAB | lab(29.47, 47.07, -50.93) |
| CIE-LCH | lch(29.47, 69.35, 312.74°) |
| OKLab | oklab(41.3% 0.0927 -0.1452) |
| OKLCH | oklch(41.3% 0.172 302.5) |
| XYZ | xyz(10.9161, 6.0211, 29.4353) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.04
Purple (survey)
#7E1E9C
ΔE00 5.76
Indigo
#4B0082
ΔE00 6.72
Indigo Blue
#3A18B1
ΔE00 7.44
Violet Blue
#510AC9
ΔE00 7.93
Purple Blue
#5D21D0
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2696 #5D9626
analogous
#272696 #5F2696 #962695
triadic
#5F2696 #965F26 #26965F
tetradic
#5F2696 #962726 #5D9626 #269596
square
#5F2696 #962726 #5D9626 #269596
split-complementary
#5F2696 #959626 #269627
monochromatic
#210D34 #401A65 #5F2696 #7E32C7 #9C60D7
Accessibility & contrast
On white
9.53
#5F2696 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5F2696 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2696
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2696 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2696 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#54425C
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5f2696; /* rgb */ color: rgb(95, 38, 150); /* oklch */ color: oklch(41.3% 0.172 302.5);
Tailwind
colors: {
custom: {
50: '#9266b6',
500: '#5f2696',
950: '#000000',
},
}SCSS
$custom: #5f2696; $custom-light: #9266b6; $custom-dark: #000000;
JSON
{
"hex": "#5f2696",
"rgb": {
"r": 95,
"g": 38,
"b": 150
},
"hsl": {
"h": 270.536,
"s": 59.574,
"l": 36.863
},
"oklch": {
"l": 0.41303,
"c": 0.17222,
"h": 302.5
},
"luminance": 0.06021
}Semantic roles & 50–950 ramp
primary
#5F2696
secondary
#8BBC5C
accent
#E34592
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80