#502F91#502F91
#502F91 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.153 H 293.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #502F91 |
|---|---|
| RGB | rgb(80, 47, 145) |
| HSL | hsl(260, 51%, 38%) |
| HSV | hsv(260, 68%, 57%) |
| CMYK | cmyk(44.8%, 67.6%, 0%, 43.1%) |
| CIE-LAB | lab(28.86, 38.15, -48.93) |
| CIE-LCH | lch(28.86, 62.05, 307.95°) |
| OKLab | oklab(40.33% 0.062 -0.1399) |
| OKLCH | oklch(40.33% 0.153 293.9) |
| XYZ | xyz(9.4342, 5.7826, 27.4017) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.25
Darkslateblue
#483D8B
ΔE00 4.95
Blueberry
#464196
ΔE00 6.07
Indigo Blue
#3A18B1
ΔE00 7.17
Ocean Blue
#4F42B5
ΔE00 7.43
Indigo
#4B0082
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502F91 #70912F
analogous
#2F3F91 #502F91 #812F91
triadic
#502F91 #91502F #2F9150
tetradic
#502F91 #912F3F #70912F #2F9181
square
#502F91 #912F3F #70912F #2F9181
split-complementary
#502F91 #91812F #3F912F
monochromatic
#1D1135 #362063 #502F91 #693EBF #8D6BCF
Accessibility & contrast
On white
9.74
#502F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#502F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502F91
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502F91 | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#3E465C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502f91; /* rgb */ color: rgb(80, 47, 145); /* oklch */ color: oklch(40.3% 0.153 293.9);
Tailwind
colors: {
custom: {
50: '#876ab2',
500: '#502f91',
950: '#000000',
},
}SCSS
$custom: #502f91; $custom-light: #876ab2; $custom-dark: #000000;
JSON
{
"hex": "#502f91",
"rgb": {
"r": 80,
"g": 47,
"b": 145
},
"hsl": {
"h": 260.204,
"s": 51.042,
"l": 37.647
},
"oklch": {
"l": 0.40328,
"c": 0.15299,
"h": 293.9
},
"luminance": 0.05783
}Semantic roles & 50–950 ramp
primary
#502F91
secondary
#9BB665
accent
#DB4DAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80