#502E96#502E96
#502E96 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.161 H 292.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #502E96 |
|---|---|
| RGB | rgb(80, 46, 150) |
| HSL | hsl(260, 53%, 38%) |
| HSV | hsv(260, 69%, 59%) |
| CMYK | cmyk(46.7%, 69.3%, 0%, 41.2%) |
| CIE-LAB | lab(29.06, 40.15, -51.67) |
| CIE-LCH | lch(29.06, 65.44, 307.85°) |
| OKLab | oklab(40.6% 0.0623 -0.1479) |
| OKLCH | oklch(40.6% 0.161 292.8) |
| XYZ | xyz(9.7888, 5.8612, 29.4638) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.31
Darkslateblue
#483D8B
ΔE00 5.41
Blueberry
#464196
ΔE00 6.22
Indigo Blue
#3A18B1
ΔE00 6.40
Ocean Blue
#4F42B5
ΔE00 7.00
Indigo
#4B0082
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502E96 #74962E
analogous
#2E4096 #502E96 #842E96
triadic
#502E96 #96502E #2E9650
tetradic
#502E96 #962E40 #74962E #2E9684
square
#502E96 #962E40 #74962E #2E9684
split-complementary
#502E96 #96842E #40962E
monochromatic
#1E1138 #372067 #502E96 #693EC4 #8E6CD2
Accessibility & contrast
On white
9.67
#502E96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#502E96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502E96
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502E96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502E96 | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#3B485E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502e96; /* rgb */ color: rgb(80, 46, 150); /* oklch */ color: oklch(40.6% 0.161 292.8);
Tailwind
colors: {
custom: {
50: '#8769b6',
500: '#502e96',
950: '#000000',
},
}SCSS
$custom: #502e96; $custom-light: #8769b6; $custom-dark: #000000;
JSON
{
"hex": "#502e96",
"rgb": {
"r": 80,
"g": 46,
"b": 150
},
"hsl": {
"h": 259.615,
"s": 53.061,
"l": 38.431
},
"oklch": {
"l": 0.406,
"c": 0.16052,
"h": 292.8
},
"luminance": 0.05861
}Semantic roles & 50–950 ramp
primary
#502E96
secondary
#9EB967
accent
#DC4BAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80