#502F88#502F88
#502F88 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.142 H 296.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #502F88 |
|---|---|
| RGB | rgb(80, 47, 136) |
| HSL | hsl(262, 49%, 36%) |
| HSV | hsv(262, 65%, 53%) |
| CMYK | cmyk(41.2%, 65.4%, 0%, 46.7%) |
| CIE-LAB | lab(28.16, 35.59, -44.50) |
| CIE-LCH | lch(28.16, 56.98, 308.65°) |
| OKLab | oklab(39.6% 0.063 -0.1268) |
| OKLCH | oklch(39.6% 0.142 296.4) |
| XYZ | xyz(8.7676, 5.5159, 23.8905) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.60
Darkslateblue
#483D8B
ΔE00 4.88
Blueberry
#464196
ΔE00 6.53
Indigo
#4B0082
ΔE00 7.69
Indigo Blue
#3A18B1
ΔE00 8.47
Ocean Blue
#4F42B5
ΔE00 8.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502F88 #67882F
analogous
#2F3A88 #502F88 #7C2F88
triadic
#502F88 #88502F #2F8850
tetradic
#502F88 #882F3A #67882F #2F887C
square
#502F88 #882F3A #67882F #2F887C
split-complementary
#502F88 #887C2F #3A882F
monochromatic
#1A102D #351F5B #502F88 #6B3FB5 #8C67CA
Accessibility & contrast
On white
9.98
#502F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#502F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502F88
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502F88 | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#424357
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #502f88; /* rgb */ color: rgb(80, 47, 136); /* oklch */ color: oklch(39.6% 0.142 296.4);
Tailwind
colors: {
custom: {
50: '#8669ab',
500: '#502f88',
950: '#000000',
},
}SCSS
$custom: #502f88; $custom-light: #8669ab; $custom-dark: #000000;
JSON
{
"hex": "#502f88",
"rgb": {
"r": 80,
"g": 47,
"b": 136
},
"hsl": {
"h": 262.247,
"s": 48.634,
"l": 35.882
},
"oklch": {
"l": 0.39601,
"c": 0.14161,
"h": 296.4
},
"luminance": 0.05516
}Semantic roles & 50–950 ramp
primary
#502F88
secondary
#94B161
accent
#D850A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F