#503F8A#503F8A
#503F8A is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.5% C 0.120 H 290.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #503F8A |
|---|---|
| RGB | rgb(80, 63, 138) |
| HSL | hsl(254, 37%, 39%) |
| HSV | hsv(254, 54%, 54%) |
| CMYK | cmyk(42%, 54.3%, 0%, 45.9%) |
| CIE-LAB | lab(32.02, 26.44, -39.51) |
| CIE-LCH | lch(32.02, 47.54, 303.79°) |
| OKLab | oklab(42.49% 0.0427 -0.1121) |
| OKLCH | oklch(42.49% 0.12 290.8) |
| XYZ | xyz(9.6720, 7.0952, 24.8997) |
| Luminance | 0.0709 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.82
Blueberry
#464196
ΔE00 3.51
Rebeccapurple
#663399
ΔE00 6.43
Twilight
#4E518B
ΔE00 6.59
Ocean Blue
#4F42B5
ΔE00 7.25
Dusk
#4E5481
ΔE00 8.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#503F8A #798A3F
analogous
#3F548A #503F8A #763F8A
triadic
#503F8A #8A503F #3F8A50
tetradic
#503F8A #8A3F54 #798A3F #3F8A76
square
#503F8A #8A3F54 #798A3F #3F8A76
split-complementary
#503F8A #8A763F #548A3F
monochromatic
#1F1936 #382C60 #503F8A #6A55B1 #8F7FC5
Accessibility & contrast
On white
8.68
#503F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#503F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #503F8A
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##503F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##503F8A | 1.00 | 8.68 | 2.42 | 8.68 |
| #FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4D8D
Deuteranopia (green-blind)
#204A88
Tritanopia (blue-blind)
#404F5E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #503f8a; /* rgb */ color: rgb(80, 63, 138); /* oklch */ color: oklch(42.5% 0.120 290.8);
Tailwind
colors: {
custom: {
50: '#8574ad',
500: '#503f8a',
950: '#000000',
},
}SCSS
$custom: #503f8a; $custom-light: #8574ad; $custom-dark: #000000;
JSON
{
"hex": "#503f8a",
"rgb": {
"r": 80,
"g": 63,
"b": 138
},
"hsl": {
"h": 253.6,
"s": 37.313,
"l": 39.412
},
"oklch": {
"l": 0.42485,
"c": 0.12,
"h": 290.8
},
"luminance": 0.07095
}Semantic roles & 50–950 ramp
primary
#503F8A
secondary
#A2AF76
accent
#CD5BB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F