#502D8F#502D8F
#502D8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.153 H 294.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #502D8F |
|---|---|
| RGB | rgb(80, 45, 143) |
| HSL | hsl(261, 52%, 37%) |
| HSV | hsv(261, 69%, 56%) |
| CMYK | cmyk(44.1%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(28.29, 38.70, -48.62) |
| CIE-LCH | lch(28.29, 62.15, 308.52°) |
| OKLab | oklab(39.87% 0.0644 -0.139) |
| OKLCH | oklch(39.87% 0.153 294.9) |
| XYZ | xyz(9.2032, 5.5652, 26.5706) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.36
Darkslateblue
#483D8B
ΔE00 5.37
Blueberry
#464196
ΔE00 6.60
Indigo Blue
#3A18B1
ΔE00 7.15
Indigo
#4B0082
ΔE00 7.25
Ocean Blue
#4F42B5
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502D8F #6C8F2D
analogous
#2D3B8F #502D8F #812D8F
triadic
#502D8F #8F502D #2D8F50
tetradic
#502D8F #8F2D3B #6C8F2D #2D8F81
square
#502D8F #8F2D3B #6C8F2D #2D8F81
split-complementary
#502D8F #8F812D #3B8F2D
monochromatic
#1C1032 #361E60 #502D8F #6A3CBE #8C67CF
Accessibility & contrast
On white
9.94
#502D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#502D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502D8F
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502D8F | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#3F455A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #502d8f; /* rgb */ color: rgb(80, 45, 143); /* oklch */ color: oklch(39.9% 0.153 294.9);
Tailwind
colors: {
custom: {
50: '#8768b1',
500: '#502d8f',
950: '#000000',
},
}SCSS
$custom: #502d8f; $custom-light: #8768b1; $custom-dark: #000000;
JSON
{
"hex": "#502d8f",
"rgb": {
"r": 80,
"g": 45,
"b": 143
},
"hsl": {
"h": 261.429,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.39868,
"c": 0.15318,
"h": 294.9
},
"luminance": 0.05565
}Semantic roles & 50–950 ramp
primary
#502D8F
secondary
#98B662
accent
#DC4CA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80