#503E8A#503E8A
#503E8A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.3% C 0.122 H 291.2°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #503E8A |
|---|---|
| RGB | rgb(80, 62, 138) |
| HSL | hsl(254, 38%, 39%) |
| HSV | hsv(254, 55%, 54%) |
| CMYK | cmyk(42%, 55.1%, 0%, 45.9%) |
| CIE-LAB | lab(31.77, 27.07, -39.91) |
| CIE-LCH | lch(31.77, 48.22, 304.15°) |
| OKLab | oklab(42.3% 0.044 -0.1133) |
| OKLCH | oklch(42.3% 0.122 291.2) |
| XYZ | xyz(9.6171, 6.9854, 24.8814) |
| Luminance | 0.0699 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.80
Blueberry
#464196
ΔE00 3.58
Rebeccapurple
#663399
ΔE00 6.19
Twilight
#4E518B
ΔE00 6.91
Ocean Blue
#4F42B5
ΔE00 7.24
Dusk
#4E5481
ΔE00 8.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#503E8A #788A3E
analogous
#3E528A #503E8A #763E8A
triadic
#503E8A #8A503E #3E8A50
tetradic
#503E8A #8A3E52 #788A3E #3E8A76
square
#503E8A #8A3E52 #788A3E #3E8A76
split-complementary
#503E8A #8A763E #528A3E
monochromatic
#1F1836 #382B60 #503E8A #6A53B2 #8E7EC5
Accessibility & contrast
On white
8.76
#503E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#503E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #503E8A
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##503E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##503E8A | 1.00 | 8.76 | 2.40 | 8.76 |
| #FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#1E4988
Tritanopia (blue-blind)
#404E5E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #503e8a; /* rgb */ color: rgb(80, 62, 138); /* oklch */ color: oklch(42.3% 0.122 291.2);
Tailwind
colors: {
custom: {
50: '#8574ad',
500: '#503e8a',
950: '#000000',
},
}SCSS
$custom: #503e8a; $custom-light: #8574ad; $custom-dark: #000000;
JSON
{
"hex": "#503e8a",
"rgb": {
"r": 80,
"g": 62,
"b": 138
},
"hsl": {
"h": 254.211,
"s": 38,
"l": 39.216
},
"oklch": {
"l": 0.423,
"c": 0.12157,
"h": 291.2
},
"luminance": 0.06986
}Semantic roles & 50–950 ramp
primary
#503E8A
secondary
#A1AF75
accent
#CE5AB2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F