#5E338F#5E338F
#5E338F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.147 H 302.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #5E338F |
|---|---|
| RGB | rgb(94, 51, 143) |
| HSL | hsl(268, 47%, 38%) |
| HSV | hsv(268, 64%, 56%) |
| CMYK | cmyk(34.3%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(31.19, 38.47, -43.85) |
| CIE-LCH | lch(31.19, 58.33, 311.26°) |
| OKLab | oklab(42.34% 0.0777 -0.1244) |
| OKLCH | oklch(42.34% 0.147 302) |
| XYZ | xyz(10.7567, 6.7305, 26.7137) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.03
Darkslateblue
#483D8B
ΔE00 6.02
Purple (survey)
#7E1E9C
ΔE00 6.84
Blueberry
#464196
ΔE00 7.32
Ocean Blue
#4F42B5
ΔE00 8.35
Indigo
#4B0082
ΔE00 8.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E338F #648F33
analogous
#33368F #5E338F #8C338F
triadic
#5E338F #8F5E33 #338F5E
tetradic
#5E338F #8F3336 #648F33 #338F8C
square
#5E338F #8F3336 #648F33 #338F8C
split-complementary
#5E338F #8F8C33 #368F33
monochromatic
#231335 #402362 #5E338F #7C43BC #9B70CC
Accessibility & contrast
On white
8.95
#5E338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#5E338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E338F
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E338F | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#14498D
Tritanopia (blue-blind)
#54475C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5e338f; /* rgb */ color: rgb(94, 51, 143); /* oklch */ color: oklch(42.3% 0.147 302.0);
Tailwind
colors: {
custom: {
50: '#8f6db0',
500: '#5e338f',
950: '#000000',
},
}SCSS
$custom: #5e338f; $custom-light: #8f6db0; $custom-dark: #000000;
JSON
{
"hex": "#5e338f",
"rgb": {
"r": 94,
"g": 51,
"b": 143
},
"hsl": {
"h": 268.043,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.42338,
"c": 0.14671,
"h": 302
},
"luminance": 0.06731
}Semantic roles & 50–950 ramp
primary
#5E338F
secondary
#91B46A
accent
#D75198
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80