#502CB3#502CB3
#502CB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.197 H 287.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).
Color values
| HEX | #502CB3 |
|---|---|
| RGB | rgb(80, 44, 179) |
| HSL | hsl(256, 61%, 44%) |
| HSV | hsv(256, 75%, 70%) |
| CMYK | cmyk(55.3%, 75.4%, 0%, 29.8%) |
| CIE-LAB | lab(31.26, 49.51, -65.59) |
| CIE-LCH | lch(31.26, 82.18, 307.05°) |
| OKLab | oklab(42.95% 0.0578 -0.1887) |
| OKLCH | oklch(42.95% 0.197 287) |
| XYZ | xyz(12.3432, 6.7608, 43.2937) |
| Luminance | 0.0676 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.27
Indigo Blue
#3A18B1
ΔE00 4.49
Violet Blue
#510AC9
ΔE00 4.59
Blue With A Hint Of Purple
#533CC6
ΔE00 4.61
Blurple
#5539CC
ΔE00 4.67
Ocean Blue
#4F42B5
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502CB3 #8FB32C
analogous
#2C4BB3 #502CB3 #932CB3
triadic
#502CB3 #B3502C #2CB350
tetradic
#502CB3 #B32C4B #8FB32C #2CB393
square
#502CB3 #B32C4B #8FB32C #2CB393
split-complementary
#502CB3 #B3932C #4BB32C
monochromatic
#241451 #3A2082 #502CB3 #6E4AD2 #957BDF
Accessibility & contrast
On white
8.93
#502CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#502CB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502CB3
8.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502CB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502CB3 | 1.00 | 8.93 | 2.35 | 8.93 |
| #FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#25526E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #502cb3; /* rgb */ color: rgb(80, 44, 179); /* oklch */ color: oklch(42.9% 0.197 287.0);
Tailwind
colors: {
custom: {
50: '#8c69cb',
500: '#502cb3',
950: '#000000',
},
}SCSS
$custom: #502cb3; $custom-light: #8c69cb; $custom-dark: #000000;
JSON
{
"hex": "#502cb3",
"rgb": {
"r": 80,
"g": 44,
"b": 179
},
"hsl": {
"h": 256,
"s": 60.538,
"l": 43.725
},
"oklch": {
"l": 0.42948,
"c": 0.1974,
"h": 287
},
"luminance": 0.06762
}Semantic roles & 50–950 ramp
primary
#502CB3
secondary
#B1C774
accent
#E444B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82