#5022A6#5022A6
#5022A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.192 H 291.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5022A6 |
|---|---|
| RGB | rgb(80, 34, 166) |
| HSL | hsl(261, 66%, 39%) |
| HSV | hsv(261, 80%, 65%) |
| CMYK | cmyk(51.8%, 79.5%, 0%, 34.9%) |
| CIE-LAB | lab(28.39, 50.57, -62.51) |
| CIE-LCH | lch(28.39, 80.40, 308.97°) |
| OKLab | oklab(40.57% 0.069 -0.1796) |
| OKLCH | oklch(40.57% 0.192 291) |
| XYZ | xyz(10.7613, 5.6023, 36.5833) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.55
Violet Blue
#510AC9
ΔE00 4.80
Purple Blue
#5D21D0
ΔE00 5.89
Rebeccapurple
#663399
ΔE00 5.99
Ultramarine
#2000B1
ΔE00 6.55
Indigo
#4B0082
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5022A6 #78A622
analogous
#2236A6 #5022A6 #9222A6
triadic
#5022A6 #A65022 #22A650
tetradic
#5022A6 #A62236 #78A622 #22A692
square
#5022A6 #A62236 #78A622 #22A692
split-complementary
#5022A6 #A69222 #36A622
monochromatic
#1F0D40 #381873 #5022A6 #6A30D5 #8E63DF
Accessibility & contrast
On white
9.90
#5022A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#5022A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5022A6
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5022A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5022A6 | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#324864
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5022a6; /* rgb */ color: rgb(80, 34, 166); /* oklch */ color: oklch(40.6% 0.192 291.0);
Tailwind
colors: {
custom: {
50: '#8b63c2',
500: '#5022a6',
950: '#000000',
},
}SCSS
$custom: #5022a6; $custom-light: #8b63c2; $custom-dark: #000000;
JSON
{
"hex": "#5022a6",
"rgb": {
"r": 80,
"g": 34,
"b": 166
},
"hsl": {
"h": 260.909,
"s": 66,
"l": 39.216
},
"oklch": {
"l": 0.40565,
"c": 0.19243,
"h": 291
},
"luminance": 0.05603
}Semantic roles & 50–950 ramp
primary
#5022A6
secondary
#A1C45F
accent
#E93FAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81