#5A338E#5A338E
#5A338E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.8% C 0.145 H 299.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #5A338E |
|---|---|
| RGB | rgb(90, 51, 142) |
| HSL | hsl(266, 47%, 38%) |
| HSV | hsv(266, 64%, 56%) |
| CMYK | cmyk(36.6%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(30.63, 37.26, -44.16) |
| CIE-LCH | lch(30.63, 57.78, 310.16°) |
| OKLab | oklab(41.8% 0.0721 -0.1255) |
| OKLCH | oklch(41.8% 0.145 299.9) |
| XYZ | xyz(10.2816, 6.4942, 26.2978) |
| Luminance | 0.0649 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.66
Darkslateblue
#483D8B
ΔE00 5.34
Blueberry
#464196
ΔE00 6.72
Purple (survey)
#7E1E9C
ΔE00 7.57
Ocean Blue
#4F42B5
ΔE00 8.07
Indigo
#4B0082
ΔE00 8.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A338E #678E33
analogous
#333A8E #5A338E #87338E
triadic
#5A338E #8E5A33 #338E5A
tetradic
#5A338E #8E333A #678E33 #338E87
square
#5A338E #8E333A #678E33 #338E87
split-complementary
#5A338E #8E8733 #3A8E33
monochromatic
#211334 #3D2361 #5A338E #7743BB #9770CC
Accessibility & contrast
On white
9.14
#5A338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#5A338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A338E
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A338E | 1.00 | 9.14 | 2.30 | 9.14 |
| #FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#0E478C
Tritanopia (blue-blind)
#4F475B
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5a338e; /* rgb */ color: rgb(90, 51, 142); /* oklch */ color: oklch(41.8% 0.145 299.9);
Tailwind
colors: {
custom: {
50: '#8d6db0',
500: '#5a338e',
950: '#000000',
},
}SCSS
$custom: #5a338e; $custom-light: #8d6db0; $custom-dark: #000000;
JSON
{
"hex": "#5a338e",
"rgb": {
"r": 90,
"g": 51,
"b": 142
},
"hsl": {
"h": 265.714,
"s": 47.15,
"l": 37.843
},
"oklch": {
"l": 0.41801,
"c": 0.14472,
"h": 299.9
},
"luminance": 0.06494
}Semantic roles & 50–950 ramp
primary
#5A338E
secondary
#94B469
accent
#D7519D
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F