#502F90#502F90
#502F90 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.152 H 294.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #502F90 |
|---|---|
| RGB | rgb(80, 47, 144) |
| HSL | hsl(260, 51%, 37%) |
| HSV | hsv(260, 67%, 56%) |
| CMYK | cmyk(44.4%, 67.4%, 0%, 43.5%) |
| CIE-LAB | lab(28.78, 37.87, -48.44) |
| CIE-LCH | lch(28.78, 61.49, 308.01°) |
| OKLab | oklab(40.24% 0.0621 -0.1384) |
| OKLCH | oklch(40.24% 0.152 294.2) |
| XYZ | xyz(9.3575, 5.7519, 26.9973) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.27
Darkslateblue
#483D8B
ΔE00 4.92
Blueberry
#464196
ΔE00 6.11
Indigo Blue
#3A18B1
ΔE00 7.30
Ocean Blue
#4F42B5
ΔE00 7.56
Indigo
#4B0082
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502F90 #6F902F
analogous
#2F3F90 #502F90 #802F90
triadic
#502F90 #90502F #2F9050
tetradic
#502F90 #902F3F #6F902F #2F9080
square
#502F90 #902F3F #6F902F #2F9080
split-complementary
#502F90 #90802F #3F902F
monochromatic
#1D1134 #362062 #502F90 #6A3EBE #8D6BCF
Accessibility & contrast
On white
9.77
#502F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#502F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502F90
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502F90 | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#3E465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502f90; /* rgb */ color: rgb(80, 47, 144); /* oklch */ color: oklch(40.2% 0.152 294.2);
Tailwind
colors: {
custom: {
50: '#876ab1',
500: '#502f90',
950: '#000000',
},
}SCSS
$custom: #502f90; $custom-light: #876ab1; $custom-dark: #000000;
JSON
{
"hex": "#502f90",
"rgb": {
"r": 80,
"g": 47,
"b": 144
},
"hsl": {
"h": 260.412,
"s": 50.785,
"l": 37.451
},
"oklch": {
"l": 0.40245,
"c": 0.15173,
"h": 294.2
},
"luminance": 0.05752
}Semantic roles & 50–950 ramp
primary
#502F90
secondary
#9AB665
accent
#DA4EAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80