#502FC3#502FC3
#502FC3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.213 H 284.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #502FC3 |
|---|---|
| RGB | rgb(80, 47, 195) |
| HSL | hsl(253, 61%, 47%) |
| HSV | hsv(253, 76%, 76%) |
| CMYK | cmyk(59%, 75.9%, 0%, 23.5%) |
| CIE-LAB | lab(33.30, 52.63, -71.68) |
| CIE-LCH | lch(33.30, 88.92, 306.28°) |
| OKLab | oklab(44.85% 0.0515 -0.2066) |
| OKLCH | oklch(44.85% 0.213 284) |
| XYZ | xyz(14.1721, 7.6777, 52.3543) |
| Luminance | 0.0768 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blurple
#5539CC
ΔE00 2.68
Blue With A Hint Of Purple
#533CC6
ΔE00 2.96
Purple Blue
#5D21D0
ΔE00 3.00
Violet Blue
#510AC9
ΔE00 4.57
Bluey Purple
#6241C7
ΔE00 4.85
Ocean Blue
#4F42B5
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502FC3 #A2C32F
analogous
#2F58C3 #502FC3 #9A2FC3
triadic
#502FC3 #C3502F #2FC350
tetradic
#502FC3 #C32F58 #A2C32F #2FC39A
square
#502FC3 #C32F58 #A2C32F #2FC39A
split-complementary
#502FC3 #C39A2F #58C32F
monochromatic
#281760 #3C2392 #502FC3 #7558D7 #9E8AE3
Accessibility & contrast
On white
8.28
#502FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#502FC3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502FC3
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502FC3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502FC3 | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#035977
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #502fc3; /* rgb */ color: rgb(80, 47, 195); /* oklch */ color: oklch(44.8% 0.213 284.0);
Tailwind
colors: {
custom: {
50: '#8e6cd6',
500: '#502fc3',
950: '#000000',
},
}SCSS
$custom: #502fc3; $custom-light: #8e6cd6; $custom-dark: #000000;
JSON
{
"hex": "#502fc3",
"rgb": {
"r": 80,
"g": 47,
"b": 195
},
"hsl": {
"h": 253.378,
"s": 61.157,
"l": 47.451
},
"oklch": {
"l": 0.44847,
"c": 0.2129,
"h": 284
},
"luminance": 0.07679
}Semantic roles & 50–950 ramp
primary
#502FC3
secondary
#BCCD81
accent
#E444C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83