#502BAC#502BAC
#502BAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.190 H 288.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #502BAC |
|---|---|
| RGB | rgb(80, 43, 172) |
| HSL | hsl(257, 60%, 42%) |
| HSV | hsv(257, 75%, 67%) |
| CMYK | cmyk(53.5%, 75%, 0%, 32.5%) |
| CIE-LAB | lab(30.43, 48.01, -62.77) |
| CIE-LCH | lch(30.43, 79.03, 307.41°) |
| OKLab | oklab(42.17% 0.0604 -0.1805) |
| OKLCH | oklch(42.17% 0.19 288.5) |
| XYZ | xyz(11.6164, 6.4112, 39.6471) |
| Luminance | 0.0641 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.34
Violet Blue
#510AC9
ΔE00 5.03
Purple Blue
#5D21D0
ΔE00 5.09
Blue With A Hint Of Purple
#533CC6
ΔE00 5.45
Blurple
#5539CC
ΔE00 5.60
Rebeccapurple
#663399
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502BAC #87AC2B
analogous
#2B47AC #502BAC #902BAC
triadic
#502BAC #AC502B #2BAC50
tetradic
#502BAC #AC2B47 #87AC2B #2BAC90
square
#502BAC #AC2B47 #87AC2B #2BAC90
split-complementary
#502BAC #AC902B #47AC2B
monochromatic
#22134A #391F7B #502BAC #6C44D0 #9375DC
Accessibility & contrast
On white
9.20
#502BAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#502BAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502BAC
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502BAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502BAC | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#2C4E69
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #502bac; /* rgb */ color: rgb(80, 43, 172); /* oklch */ color: oklch(42.2% 0.190 288.5);
Tailwind
colors: {
custom: {
50: '#8b68c6',
500: '#502bac',
950: '#000000',
},
}SCSS
$custom: #502bac; $custom-light: #8b68c6; $custom-dark: #000000;
JSON
{
"hex": "#502bac",
"rgb": {
"r": 80,
"g": 43,
"b": 172
},
"hsl": {
"h": 257.209,
"s": 60,
"l": 42.157
},
"oklch": {
"l": 0.42166,
"c": 0.19031,
"h": 288.5
},
"luminance": 0.06412
}Semantic roles & 50–950 ramp
primary
#502BAC
secondary
#ACC46F
accent
#E345B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82