#502C99#502C99
#502C99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.167 H 292.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).
Color values
| HEX | #502C99 |
|---|---|
| RGB | rgb(80, 44, 153) |
| HSL | hsl(260, 55%, 39%) |
| HSV | hsv(260, 71%, 60%) |
| CMYK | cmyk(47.7%, 71.2%, 0%, 40%) |
| CIE-LAB | lab(28.92, 42.09, -53.74) |
| CIE-LCH | lch(28.92, 68.26, 308.07°) |
| OKLab | oklab(40.58% 0.0638 -0.154) |
| OKLCH | oklch(40.58% 0.167 292.5) |
| XYZ | xyz(9.9571, 5.8064, 30.7269) |
| Luminance | 0.0581 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.49
Indigo Blue
#3A18B1
ΔE00 5.77
Darkslateblue
#483D8B
ΔE00 6.01
Blueberry
#464196
ΔE00 6.67
Ocean Blue
#4F42B5
ΔE00 7.03
Violet Blue
#510AC9
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502C99 #75992C
analogous
#2C3E99 #502C99 #862C99
triadic
#502C99 #99502C #2C9950
tetradic
#502C99 #992C3E #75992C #2C9986
square
#502C99 #992C3E #75992C #2C9986
split-complementary
#502C99 #99862C #3E992C
monochromatic
#1E113A #371E69 #502C99 #693BC7 #8E6BD4
Accessibility & contrast
On white
9.72
#502C99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#502C99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502C99
9.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502C99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502C99 | 1.00 | 9.72 | 2.16 | 9.72 |
| #FFFFFF | 9.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3A485F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502c99; /* rgb */ color: rgb(80, 44, 153); /* oklch */ color: oklch(40.6% 0.167 292.5);
Tailwind
colors: {
custom: {
50: '#8868b8',
500: '#502c99',
950: '#000000',
},
}SCSS
$custom: #502c99; $custom-light: #8868b8; $custom-dark: #000000;
JSON
{
"hex": "#502c99",
"rgb": {
"r": 80,
"g": 44,
"b": 153
},
"hsl": {
"h": 259.817,
"s": 55.33,
"l": 38.627
},
"oklch": {
"l": 0.40578,
"c": 0.16668,
"h": 292.5
},
"luminance": 0.05807
}Semantic roles & 50–950 ramp
primary
#502C99
secondary
#9FBB66
accent
#DF49AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80