#502C95#502C95
#502C95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.162 H 293.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #502C95 |
|---|---|
| RGB | rgb(80, 44, 149) |
| HSL | hsl(261, 54%, 38%) |
| HSV | hsv(261, 70%, 58%) |
| CMYK | cmyk(46.3%, 70.5%, 0%, 41.6%) |
| CIE-LAB | lab(28.58, 40.95, -51.84) |
| CIE-LCH | lch(28.58, 66.06, 308.31°) |
| OKLab | oklab(40.23% 0.0645 -0.1484) |
| OKLCH | oklch(40.23% 0.162 293.5) |
| XYZ | xyz(9.6323, 5.6765, 29.0161) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.40
Darkslateblue
#483D8B
ΔE00 5.80
Indigo Blue
#3A18B1
ΔE00 6.23
Blueberry
#464196
ΔE00 6.68
Indigo
#4B0082
ΔE00 7.26
Ocean Blue
#4F42B5
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502C95 #71952C
analogous
#2C3D95 #502C95 #842C95
triadic
#502C95 #95502C #2C9550
tetradic
#502C95 #952C3D #71952C #2C9584
square
#502C95 #952C3D #71952C #2C9584
split-complementary
#502C95 #95842C #3D952C
monochromatic
#1D1037 #371E66 #502C95 #693AC4 #8D69D3
Accessibility & contrast
On white
9.83
#502C95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#502C95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502C95
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502C95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502C95 | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3C465D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #502c95; /* rgb */ color: rgb(80, 44, 149); /* oklch */ color: oklch(40.2% 0.162 293.5);
Tailwind
colors: {
custom: {
50: '#8768b5',
500: '#502c95',
950: '#000000',
},
}SCSS
$custom: #502c95; $custom-light: #8768b5; $custom-dark: #000000;
JSON
{
"hex": "#502c95",
"rgb": {
"r": 80,
"g": 44,
"b": 149
},
"hsl": {
"h": 260.571,
"s": 54.404,
"l": 37.843
},
"oklch": {
"l": 0.40232,
"c": 0.16184,
"h": 293.5
},
"luminance": 0.05677
}Semantic roles & 50–950 ramp
primary
#502C95
secondary
#9CB964
accent
#DE4AAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80