#502CBA#502CBA
#502CBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.205 H 285.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #502CBA |
|---|---|
| RGB | rgb(80, 44, 186) |
| HSL | hsl(255, 62%, 45%) |
| HSV | hsv(255, 76%, 73%) |
| CMYK | cmyk(57%, 76.3%, 0%, 27.1%) |
| CIE-LAB | lab(31.92, 51.51, -68.65) |
| CIE-LCH | lch(31.92, 85.82, 306.88°) |
| OKLab | oklab(43.62% 0.056 -0.1977) |
| OKLCH | oklch(43.62% 0.205 285.8) |
| XYZ | xyz(13.0692, 7.0512, 47.1172) |
| Luminance | 0.0705 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.50
Blurple
#5539CC
ΔE00 3.95
Blue With A Hint Of Purple
#533CC6
ΔE00 4.04
Violet Blue
#510AC9
ΔE00 4.19
Indigo Blue
#3A18B1
ΔE00 4.72
Ocean Blue
#4F42B5
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502CBA #96BA2C
analogous
#2C4FBA #502CBA #972CBA
triadic
#502CBA #BA502C #2CBA50
tetradic
#502CBA #BA2C4F #96BA2C #2CBA97
square
#502CBA #BA2C4F #96BA2C #2CBA97
split-complementary
#502CBA #BA972C #4FBA2C
monochromatic
#251557 #3B2089 #502CBA #704ED5 #9880E1
Accessibility & contrast
On white
8.71
#502CBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#502CBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502CBA
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502CBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502CBA | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#1B5472
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #502cba; /* rgb */ color: rgb(80, 44, 186); /* oklch */ color: oklch(43.6% 0.205 285.8);
Tailwind
colors: {
custom: {
50: '#8d6ad0',
500: '#502cba',
950: '#000000',
},
}SCSS
$custom: #502cba; $custom-light: #8d6ad0; $custom-dark: #000000;
JSON
{
"hex": "#502cba",
"rgb": {
"r": 80,
"g": 44,
"b": 186
},
"hsl": {
"h": 255.211,
"s": 61.739,
"l": 45.098
},
"oklch": {
"l": 0.43618,
"c": 0.20546,
"h": 285.8
},
"luminance": 0.07052
}Semantic roles & 50–950 ramp
primary
#502CBA
secondary
#B5CA78
accent
#E543BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82