#502C97#502C97
#502C97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.164 H 293.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #502C97 |
|---|---|
| RGB | rgb(80, 44, 151) |
| HSL | hsl(260, 55%, 38%) |
| HSV | hsv(260, 71%, 59%) |
| CMYK | cmyk(47%, 70.9%, 0%, 40.8%) |
| CIE-LAB | lab(28.75, 41.52, -52.79) |
| CIE-LCH | lch(28.75, 67.16, 308.19°) |
| OKLab | oklab(40.4% 0.0642 -0.1512) |
| OKLCH | oklch(40.4% 0.164 293) |
| XYZ | xyz(9.7933, 5.7409, 29.8643) |
| Luminance | 0.0574 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.43
Darkslateblue
#483D8B
ΔE00 5.90
Indigo Blue
#3A18B1
ΔE00 6.00
Blueberry
#464196
ΔE00 6.67
Ocean Blue
#4F42B5
ΔE00 7.23
Indigo
#4B0082
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502C97 #73972C
analogous
#2C3D97 #502C97 #852C97
triadic
#502C97 #97502C #2C9750
tetradic
#502C97 #972C3D #73972C #2C9785
square
#502C97 #972C3D #73972C #2C9785
split-complementary
#502C97 #97852C #3D972C
monochromatic
#1E1038 #371E68 #502C97 #693AC6 #8D6AD4
Accessibility & contrast
On white
9.78
#502C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#502C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502C97
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502C97 | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3B475E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502c97; /* rgb */ color: rgb(80, 44, 151); /* oklch */ color: oklch(40.4% 0.164 293.0);
Tailwind
colors: {
custom: {
50: '#8868b6',
500: '#502c97',
950: '#000000',
},
}SCSS
$custom: #502c97; $custom-light: #8868b6; $custom-dark: #000000;
JSON
{
"hex": "#502c97",
"rgb": {
"r": 80,
"g": 44,
"b": 151
},
"hsl": {
"h": 260.187,
"s": 54.872,
"l": 38.235
},
"oklch": {
"l": 0.40404,
"c": 0.16427,
"h": 293
},
"luminance": 0.05741
}Semantic roles & 50–950 ramp
primary
#502C97
secondary
#9DBA65
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80