#5A338F#5A338F
#5A338F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.146 H 299.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #5A338F |
|---|---|
| RGB | rgb(90, 51, 143) |
| HSL | hsl(265, 47%, 38%) |
| HSV | hsv(265, 64%, 56%) |
| CMYK | cmyk(37.1%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(30.70, 37.53, -44.66) |
| CIE-LCH | lch(30.70, 58.34, 310.04°) |
| OKLab | oklab(41.88% 0.072 -0.127) |
| OKLCH | oklch(41.88% 0.146 299.6) |
| XYZ | xyz(10.3570, 6.5244, 26.6950) |
| Luminance | 0.0652 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.58
Darkslateblue
#483D8B
ΔE00 5.33
Blueberry
#464196
ΔE00 6.65
Purple (survey)
#7E1E9C
ΔE00 7.55
Ocean Blue
#4F42B5
ΔE00 7.92
Indigo
#4B0082
ΔE00 8.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A338F #688F33
analogous
#333A8F #5A338F #88338F
triadic
#5A338F #8F5A33 #338F5A
tetradic
#5A338F #8F333A #688F33 #338F88
square
#5A338F #8F333A #688F33 #338F88
split-complementary
#5A338F #8F8833 #3A8F33
monochromatic
#211335 #3E2362 #5A338F #7643BC #9770CC
Accessibility & contrast
On white
9.11
#5A338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#5A338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A338F
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A338F | 1.00 | 9.11 | 2.30 | 9.11 |
| #FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#0B488D
Tritanopia (blue-blind)
#4E475C
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5a338f; /* rgb */ color: rgb(90, 51, 143); /* oklch */ color: oklch(41.9% 0.146 299.6);
Tailwind
colors: {
custom: {
50: '#8d6db0',
500: '#5a338f',
950: '#000000',
},
}SCSS
$custom: #5a338f; $custom-light: #8d6db0; $custom-dark: #000000;
JSON
{
"hex": "#5a338f",
"rgb": {
"r": 90,
"g": 51,
"b": 143
},
"hsl": {
"h": 265.435,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.41876,
"c": 0.14596,
"h": 299.6
},
"luminance": 0.06524
}Semantic roles & 50–950 ramp
primary
#5A338F
secondary
#95B46A
accent
#D7519E
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80