#502CB1#502CB1
#502CB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.195 H 287.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #502CB1 |
|---|---|
| RGB | rgb(80, 44, 177) |
| HSL | hsl(256, 60%, 43%) |
| HSV | hsv(256, 75%, 69%) |
| CMYK | cmyk(54.8%, 75.1%, 0%, 30.6%) |
| CIE-LAB | lab(31.07, 48.94, -64.71) |
| CIE-LCH | lch(31.07, 81.13, 307.10°) |
| OKLab | oklab(42.76% 0.0584 -0.1862) |
| OKLCH | oklch(42.76% 0.195 287.4) |
| XYZ | xyz(12.1424, 6.6805, 42.2361) |
| Luminance | 0.0668 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.47
Purple Blue
#5D21D0
ΔE00 4.51
Violet Blue
#510AC9
ΔE00 4.74
Blue With A Hint Of Purple
#533CC6
ΔE00 4.79
Blurple
#5539CC
ΔE00 4.89
Ocean Blue
#4F42B5
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502CB1 #8DB12C
analogous
#2C4AB1 #502CB1 #922CB1
triadic
#502CB1 #B1502C #2CB150
tetradic
#502CB1 #B12C4A #8DB12C #2CB192
square
#502CB1 #B12C4A #8DB12C #2CB192
split-complementary
#502CB1 #B1922C #4AB12C
monochromatic
#24144F #3A2080 #502CB1 #6E49D2 #957ADE
Accessibility & contrast
On white
8.99
#502CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#502CB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502CB1
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502CB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502CB1 | 1.00 | 8.99 | 2.34 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#27516C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #502cb1; /* rgb */ color: rgb(80, 44, 177); /* oklch */ color: oklch(42.8% 0.195 287.4);
Tailwind
colors: {
custom: {
50: '#8c69c9',
500: '#502cb1',
950: '#000000',
},
}SCSS
$custom: #502cb1; $custom-light: #8c69c9; $custom-dark: #000000;
JSON
{
"hex": "#502cb1",
"rgb": {
"r": 80,
"g": 44,
"b": 177
},
"hsl": {
"h": 256.241,
"s": 60.181,
"l": 43.333
},
"oklch": {
"l": 0.42759,
"c": 0.19509,
"h": 287.4
},
"luminance": 0.06681
}Semantic roles & 50–950 ramp
primary
#502CB1
secondary
#AFC673
accent
#E344B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82