#5E2F9D#5E2F9D
#5E2F9D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.169 H 298.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2F9D |
|---|---|
| RGB | rgb(94, 47, 157) |
| HSL | hsl(266, 54%, 40%) |
| HSV | hsv(266, 70%, 62%) |
| CMYK | cmyk(40.1%, 70.1%, 0%, 38.4%) |
| CIE-LAB | lab(31.46, 44.29, -51.97) |
| CIE-LCH | lch(31.46, 68.29, 310.44°) |
| OKLab | oklab(42.86% 0.0807 -0.1483) |
| OKLCH | oklch(42.86% 0.169 298.5) |
| XYZ | xyz(11.7169, 6.8469, 32.5960) |
| Luminance | 0.0685 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.12
Purple (survey)
#7E1E9C
ΔE00 6.56
Darkslateblue
#483D8B
ΔE00 6.87
Ocean Blue
#4F42B5
ΔE00 7.02
Purple Blue
#5D21D0
ΔE00 7.27
Blue With A Hint Of Purple
#533CC6
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2F9D #6E9D2F
analogous
#2F379D #5E2F9D #952F9D
triadic
#5E2F9D #9D5E2F #2F9D5E
tetradic
#5E2F9D #9D2F37 #6E9D2F #2F9D95
square
#5E2F9D #9D2F37 #6E9D2F #2F9D95
split-complementary
#5E2F9D #9D952F #379D2F
monochromatic
#26133F #42216E #5E2F9D #7B43C7 #9C72D5
Accessibility & contrast
On white
8.86
#5E2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#5E2F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2F9D
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2F9D | 1.00 | 8.86 | 2.37 | 8.86 |
| #FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#4F4962
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #5e2f9d; /* rgb */ color: rgb(94, 47, 157); /* oklch */ color: oklch(42.9% 0.169 298.5);
Tailwind
colors: {
custom: {
50: '#916bbb',
500: '#5e2f9d',
950: '#000000',
},
}SCSS
$custom: #5e2f9d; $custom-light: #916bbb; $custom-dark: #000000;
JSON
{
"hex": "#5e2f9d",
"rgb": {
"r": 94,
"g": 47,
"b": 157
},
"hsl": {
"h": 265.636,
"s": 53.922,
"l": 40
},
"oklch": {
"l": 0.42863,
"c": 0.16883,
"h": 298.5
},
"luminance": 0.06847
}Semantic roles & 50–950 ramp
primary
#5E2F9D
secondary
#9ABC6B
accent
#DD4B9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81