#502C96#502C96
#502C96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.163 H 293.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #502C96 |
|---|---|
| RGB | rgb(80, 44, 150) |
| HSL | hsl(260, 55%, 38%) |
| HSV | hsv(260, 71%, 59%) |
| CMYK | cmyk(46.7%, 70.7%, 0%, 41.2%) |
| CIE-LAB | lab(28.66, 41.24, -52.32) |
| CIE-LCH | lch(28.66, 66.62, 308.25°) |
| OKLab | oklab(40.32% 0.0644 -0.1498) |
| OKLCH | oklch(40.32% 0.163 293.2) |
| XYZ | xyz(9.7125, 5.7085, 29.4384) |
| Luminance | 0.0571 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.41
Darkslateblue
#483D8B
ΔE00 5.85
Indigo Blue
#3A18B1
ΔE00 6.11
Blueberry
#464196
ΔE00 6.67
Indigo
#4B0082
ΔE00 7.31
Ocean Blue
#4F42B5
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502C96 #72962C
analogous
#2C3D96 #502C96 #852C96
triadic
#502C96 #96502C #2C9650
tetradic
#502C96 #962C3D #72962C #2C9685
square
#502C96 #962C3D #72962C #2C9685
split-complementary
#502C96 #96852C #3D962C
monochromatic
#1E1037 #371E67 #502C96 #693AC5 #8D69D3
Accessibility & contrast
On white
9.80
#502C96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#502C96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502C96
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502C96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502C96 | 1.00 | 9.80 | 2.14 | 9.80 |
| #FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3B475D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502c96; /* rgb */ color: rgb(80, 44, 150); /* oklch */ color: oklch(40.3% 0.163 293.2);
Tailwind
colors: {
custom: {
50: '#8868b6',
500: '#502c96',
950: '#000000',
},
}SCSS
$custom: #502c96; $custom-light: #8868b6; $custom-dark: #000000;
JSON
{
"hex": "#502c96",
"rgb": {
"r": 80,
"g": 44,
"b": 150
},
"hsl": {
"h": 260.377,
"s": 54.639,
"l": 38.039
},
"oklch": {
"l": 0.40318,
"c": 0.16305,
"h": 293.2
},
"luminance": 0.05709
}Semantic roles & 50–950 ramp
primary
#502C96
secondary
#9DBA64
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80