#562A7A#562A7A
#562A7A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.133 H 306.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #562A7A |
|---|---|
| RGB | rgb(86, 42, 122) |
| HSL | hsl(273, 49%, 32%) |
| HSV | hsv(273, 66%, 48%) |
| CMYK | cmyk(29.5%, 65.6%, 0%, 52.2%) |
| CIE-LAB | lab(26.85, 36.05, -37.79) |
| CIE-LCH | lch(26.85, 52.23, 313.65°) |
| OKLab | oklab(38.5% 0.079 -0.1069) |
| OKLCH | oklch(38.5% 0.133 306.5) |
| XYZ | xyz(8.1778, 5.0396, 18.9505) |
| Luminance | 0.0504 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.77
Royal Purple (survey)
#4B006E
ΔE00 7.09
Indigo
#4B0082
ΔE00 7.33
Darkslateblue
#483D8B
ΔE00 7.64
Darkish Purple
#751973
ΔE00 7.97
Purple (survey)
#7E1E9C
ΔE00 8.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A7A #4E7A2A
analogous
#2E2A7A #562A7A #7A2A76
triadic
#562A7A #7A562A #2A7A56
tetradic
#562A7A #7A2E2A #4E7A2A #2A767A
square
#562A7A #7A2E2A #4E7A2A #2A767A
split-complementary
#562A7A #767A2A #2A7A2E
monochromatic
#160B1F #361A4C #562A7A #763AA8 #9559C6
Accessibility & contrast
On white
10.46
#562A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#562A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A7A
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A7A | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#503A4E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #562a7a; /* rgb */ color: rgb(86, 42, 122); /* oklch */ color: oklch(38.5% 0.133 306.5);
Tailwind
colors: {
custom: {
50: '#8966a1',
500: '#562a7a',
950: '#000000',
},
}SCSS
$custom: #562a7a; $custom-light: #8966a1; $custom-dark: #000000;
JSON
{
"hex": "#562a7a",
"rgb": {
"r": 86,
"g": 42,
"b": 122
},
"hsl": {
"h": 273,
"s": 48.78,
"l": 32.157
},
"oklch": {
"l": 0.38496,
"c": 0.1329,
"h": 306.5
},
"luminance": 0.0504
}Semantic roles & 50–950 ramp
primary
#562A7A
secondary
#7CAB55
accent
#D84F8D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F