#562A8D#562A8D
#562A8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.155 H 299.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #562A8D |
|---|---|
| RGB | rgb(86, 42, 141) |
| HSL | hsl(267, 54%, 36%) |
| HSV | hsv(267, 70%, 55%) |
| CMYK | cmyk(39%, 70.2%, 0%, 44.7%) |
| CIE-LAB | lab(28.27, 41.01, -47.39) |
| CIE-LCH | lch(28.27, 62.67, 310.87°) |
| OKLab | oklab(39.97% 0.0769 -0.1351) |
| OKLCH | oklch(39.97% 0.155 299.7) |
| XYZ | xyz(9.4722, 5.5574, 25.7678) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.73
Darkslateblue
#483D8B
ΔE00 6.58
Indigo
#4B0082
ΔE00 6.58
Purple (survey)
#7E1E9C
ΔE00 7.54
Indigo Blue
#3A18B1
ΔE00 7.72
Blueberry
#464196
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A8D #618D2A
analogous
#2A2F8D #562A8D #872A8D
triadic
#562A8D #8D562A #2A8D56
tetradic
#562A8D #8D2A2F #618D2A #2A8D87
square
#562A8D #8D2A2F #618D2A #2A8D87
split-complementary
#562A8D #8D872A #2F8D2A
monochromatic
#1C0E2F #391C5E #562A8D #7338BC #9361D0
Accessibility & contrast
On white
9.95
#562A8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#562A8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A8D
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A8D | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#494158
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #562a8d; /* rgb */ color: rgb(86, 42, 141); /* oklch */ color: oklch(40.0% 0.155 299.7);
Tailwind
colors: {
custom: {
50: '#8a67af',
500: '#562a8d',
950: '#000000',
},
}SCSS
$custom: #562a8d; $custom-light: #8a67af; $custom-dark: #000000;
JSON
{
"hex": "#562a8d",
"rgb": {
"r": 86,
"g": 42,
"b": 141
},
"hsl": {
"h": 266.667,
"s": 54.098,
"l": 35.882
},
"oklch": {
"l": 0.39967,
"c": 0.15546,
"h": 299.7
},
"luminance": 0.05557
}Semantic roles & 50–950 ramp
primary
#562A8D
secondary
#8EB65D
accent
#DD4A9C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F