#502E91#502E91
#502E91 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.154 H 294.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #502E91 |
|---|---|
| RGB | rgb(80, 46, 145) |
| HSL | hsl(261, 52%, 37%) |
| HSV | hsv(261, 68%, 57%) |
| CMYK | cmyk(44.8%, 68.3%, 0%, 43.1%) |
| CIE-LAB | lab(28.65, 38.72, -49.26) |
| CIE-LCH | lch(28.65, 62.66, 308.16°) |
| OKLab | oklab(40.18% 0.0631 -0.1408) |
| OKLCH | oklch(40.18% 0.154 294.1) |
| XYZ | xyz(9.3947, 5.7035, 27.3885) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.28
Darkslateblue
#483D8B
ΔE00 5.19
Blueberry
#464196
ΔE00 6.30
Indigo Blue
#3A18B1
ΔE00 7.02
Indigo
#4B0082
ΔE00 7.54
Ocean Blue
#4F42B5
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502E91 #6F912E
analogous
#2E3E91 #502E91 #812E91
triadic
#502E91 #91502E #2E9150
tetradic
#502E91 #912E3E #6F912E #2E9181
square
#502E91 #912E3E #6F912E #2E9181
split-complementary
#502E91 #91812E #3E912E
monochromatic
#1D1134 #361F63 #502E91 #6A3DBF #8D6AD0
Accessibility & contrast
On white
9.81
#502E91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#502E91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502E91
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502E91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502E91 | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#3E465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502e91; /* rgb */ color: rgb(80, 46, 145); /* oklch */ color: oklch(40.2% 0.154 294.1);
Tailwind
colors: {
custom: {
50: '#8769b2',
500: '#502e91',
950: '#000000',
},
}SCSS
$custom: #502e91; $custom-light: #8769b2; $custom-dark: #000000;
JSON
{
"hex": "#502e91",
"rgb": {
"r": 80,
"g": 46,
"b": 145
},
"hsl": {
"h": 260.606,
"s": 51.832,
"l": 37.451
},
"oklch": {
"l": 0.4018,
"c": 0.15433,
"h": 294.1
},
"luminance": 0.05704
}Semantic roles & 50–950 ramp
primary
#502E91
secondary
#9AB764
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80