#502C92#502C92
#502C92 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.158 H 294.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #502C92 |
|---|---|
| RGB | rgb(80, 44, 146) |
| HSL | hsl(261, 54%, 37%) |
| HSV | hsv(261, 70%, 57%) |
| CMYK | cmyk(45.2%, 69.9%, 0%, 42.7%) |
| CIE-LAB | lab(28.33, 40.10, -50.40) |
| CIE-LCH | lch(28.33, 64.41, 308.51°) |
| OKLab | oklab(39.98% 0.0651 -0.1442) |
| OKLCH | oklch(39.98% 0.158 294.3) |
| XYZ | xyz(9.3959, 5.5819, 27.7709) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.38
Darkslateblue
#483D8B
ΔE00 5.68
Indigo Blue
#3A18B1
ΔE00 6.61
Blueberry
#464196
ΔE00 6.73
Indigo
#4B0082
ΔE00 7.12
Ocean Blue
#4F42B5
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502C92 #6E922C
analogous
#2C3B92 #502C92 #832C92
triadic
#502C92 #92502C #2C9250
tetradic
#502C92 #922C3B #6E922C #2C9283
square
#502C92 #922C3B #6E922C #2C9283
split-complementary
#502C92 #92832C #3B922C
monochromatic
#1C1034 #361E63 #502C92 #6A3AC1 #8D67D1
Accessibility & contrast
On white
9.92
#502C92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#502C92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502C92
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502C92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502C92 | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#3D455B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #502c92; /* rgb */ color: rgb(80, 44, 146); /* oklch */ color: oklch(40.0% 0.158 294.3);
Tailwind
colors: {
custom: {
50: '#8768b3',
500: '#502c92',
950: '#000000',
},
}SCSS
$custom: #502c92; $custom-light: #8768b3; $custom-dark: #000000;
JSON
{
"hex": "#502c92",
"rgb": {
"r": 80,
"g": 44,
"b": 146
},
"hsl": {
"h": 261.176,
"s": 53.684,
"l": 37.255
},
"oklch": {
"l": 0.39976,
"c": 0.15818,
"h": 294.3
},
"luminance": 0.05582
}Semantic roles & 50–950 ramp
primary
#502C92
secondary
#9AB862
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80