#502F8F#502F8F
#502F8F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.150 H 294.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #502F8F |
|---|---|
| RGB | rgb(80, 47, 143) |
| HSL | hsl(261, 51%, 37%) |
| HSV | hsv(261, 67%, 56%) |
| CMYK | cmyk(44.1%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(28.70, 37.58, -47.96) |
| CIE-LCH | lch(28.70, 60.93, 308.09°) |
| OKLab | oklab(40.16% 0.0622 -0.137) |
| OKLCH | oklch(40.16% 0.15 294.4) |
| XYZ | xyz(9.2814, 5.7214, 26.5966) |
| Luminance | 0.0572 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.29
Darkslateblue
#483D8B
ΔE00 4.90
Blueberry
#464196
ΔE00 6.14
Indigo Blue
#3A18B1
ΔE00 7.44
Ocean Blue
#4F42B5
ΔE00 7.69
Indigo
#4B0082
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502F8F #6E8F2F
analogous
#2F3E8F #502F8F #802F8F
triadic
#502F8F #8F502F #2F8F50
tetradic
#502F8F #8F2F3E #6E8F2F #2F8F80
square
#502F8F #8F2F3E #6E8F2F #2F8F80
split-complementary
#502F8F #8F802F #3E8F2F
monochromatic
#1C1133 #362061 #502F8F #6A3EBD #8D6ACE
Accessibility & contrast
On white
9.79
#502F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#502F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502F8F
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502F8F | 1.00 | 9.79 | 2.14 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3F465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502f8f; /* rgb */ color: rgb(80, 47, 143); /* oklch */ color: oklch(40.2% 0.150 294.4);
Tailwind
colors: {
custom: {
50: '#866ab1',
500: '#502f8f',
950: '#000000',
},
}SCSS
$custom: #502f8f; $custom-light: #866ab1; $custom-dark: #000000;
JSON
{
"hex": "#502f8f",
"rgb": {
"r": 80,
"g": 47,
"b": 143
},
"hsl": {
"h": 260.625,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.40163,
"c": 0.15047,
"h": 294.4
},
"luminance": 0.05722
}Semantic roles & 50–950 ramp
primary
#502F8F
secondary
#9AB565
accent
#DA4EAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80