#5E2F95#5E2F95
#5E2F95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.160 H 300.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2F95 |
|---|---|
| RGB | rgb(94, 47, 149) |
| HSL | hsl(268, 52%, 38%) |
| HSV | hsv(268, 68%, 58%) |
| CMYK | cmyk(36.9%, 68.5%, 0%, 41.6%) |
| CIE-LAB | lab(30.84, 42.19, -48.10) |
| CIE-LCH | lch(30.84, 63.98, 311.26°) |
| OKLab | oklab(42.23% 0.0819 -0.1369) |
| OKLCH | oklch(42.23% 0.16 300.9) |
| XYZ | xyz(11.0561, 6.5826, 29.1160) |
| Luminance | 0.0658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.77
Purple (survey)
#7E1E9C
ΔE00 6.37
Darkslateblue
#483D8B
ΔE00 6.64
Blueberry
#464196
ΔE00 7.66
Ocean Blue
#4F42B5
ΔE00 7.96
Indigo
#4B0082
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2F95 #66952F
analogous
#2F3395 #5E2F95 #912F95
triadic
#5E2F95 #955E2F #2F955E
tetradic
#5E2F95 #952F33 #66952F #2F9591
square
#5E2F95 #952F33 #66952F #2F9591
split-complementary
#5E2F95 #95912F #33952F
monochromatic
#231238 #412066 #5E2F95 #7B3FC2 #9B6DD1
Accessibility & contrast
On white
9.07
#5E2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#5E2F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2F95
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2F95 | 1.00 | 9.07 | 2.32 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#52465E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5e2f95; /* rgb */ color: rgb(94, 47, 149); /* oklch */ color: oklch(42.2% 0.160 300.9);
Tailwind
colors: {
custom: {
50: '#906bb5',
500: '#5e2f95',
950: '#000000',
},
}SCSS
$custom: #5e2f95; $custom-light: #906bb5; $custom-dark: #000000;
JSON
{
"hex": "#5e2f95",
"rgb": {
"r": 94,
"g": 47,
"b": 149
},
"hsl": {
"h": 267.647,
"s": 52.041,
"l": 38.431
},
"oklch": {
"l": 0.42226,
"c": 0.15952,
"h": 300.9
},
"luminance": 0.06583
}Semantic roles & 50–950 ramp
primary
#5E2F95
secondary
#93B867
accent
#DB4C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80