#5D338F#5D338F
#5D338F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.147 H 301.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5D338F |
|---|---|
| RGB | rgb(93, 51, 143) |
| HSL | hsl(267, 47%, 38%) |
| HSV | hsv(267, 64%, 56%) |
| CMYK | cmyk(35%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(31.06, 38.23, -44.06) |
| CIE-LCH | lch(31.06, 58.33, 310.95°) |
| OKLab | oklab(42.22% 0.0763 -0.1251) |
| OKLCH | oklch(42.22% 0.147 301.4) |
| XYZ | xyz(10.6548, 6.6779, 26.7089) |
| Luminance | 0.0668 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.15
Darkslateblue
#483D8B
ΔE00 5.84
Purple (survey)
#7E1E9C
ΔE00 7.01
Blueberry
#464196
ΔE00 7.15
Ocean Blue
#4F42B5
ΔE00 8.23
Indigo
#4B0082
ΔE00 8.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D338F #658F33
analogous
#33378F #5D338F #8B338F
triadic
#5D338F #8F5D33 #338F5D
tetradic
#5D338F #8F3337 #658F33 #338F8B
square
#5D338F #8F3337 #658F33 #338F8B
split-complementary
#5D338F #8F8B33 #378F33
monochromatic
#221335 #402362 #5D338F #7A43BC #9A70CC
Accessibility & contrast
On white
8.99
#5D338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#5D338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D338F
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D338F | 1.00 | 8.99 | 2.34 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#12498D
Tritanopia (blue-blind)
#53475C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5d338f; /* rgb */ color: rgb(93, 51, 143); /* oklch */ color: oklch(42.2% 0.147 301.4);
Tailwind
colors: {
custom: {
50: '#8f6db0',
500: '#5d338f',
950: '#000000',
},
}SCSS
$custom: #5d338f; $custom-light: #8f6db0; $custom-dark: #000000;
JSON
{
"hex": "#5d338f",
"rgb": {
"r": 93,
"g": 51,
"b": 143
},
"hsl": {
"h": 267.391,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.42221,
"c": 0.14651,
"h": 301.4
},
"luminance": 0.06678
}Semantic roles & 50–950 ramp
primary
#5D338F
secondary
#92B46A
accent
#D7519A
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80