#562A8C#562A8C
#562A8C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.154 H 300.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #562A8C |
|---|---|
| RGB | rgb(86, 42, 140) |
| HSL | hsl(267, 54%, 36%) |
| HSV | hsv(267, 70%, 55%) |
| CMYK | cmyk(38.6%, 70%, 0%, 45.1%) |
| CIE-LAB | lab(28.19, 40.74, -46.90) |
| CIE-LCH | lch(28.19, 62.12, 310.98°) |
| OKLab | oklab(39.89% 0.0771 -0.1336) |
| OKLCH | oklch(39.89% 0.154 300) |
| XYZ | xyz(9.3982, 5.5277, 25.3777) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.78
Indigo
#4B0082
ΔE00 6.57
Darkslateblue
#483D8B
ΔE00 6.59
Purple (survey)
#7E1E9C
ΔE00 7.56
Indigo Blue
#3A18B1
ΔE00 7.87
Blueberry
#464196
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A8C #608C2A
analogous
#2A2F8C #562A8C #872A8C
triadic
#562A8C #8C562A #2A8C56
tetradic
#562A8C #8C2A2F #608C2A #2A8C87
square
#562A8C #8C2A2F #608C2A #2A8C87
split-complementary
#562A8C #8C872A #2F8C2A
monochromatic
#1C0E2E #391C5D #562A8C #7338BB #9361D0
Accessibility & contrast
On white
9.97
#562A8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#562A8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A8C
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A8C | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#4A4157
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #562a8c; /* rgb */ color: rgb(86, 42, 140); /* oklch */ color: oklch(39.9% 0.154 300.0);
Tailwind
colors: {
custom: {
50: '#8a67ae',
500: '#562a8c',
950: '#000000',
},
}SCSS
$custom: #562a8c; $custom-light: #8a67ae; $custom-dark: #000000;
JSON
{
"hex": "#562a8c",
"rgb": {
"r": 86,
"g": 42,
"b": 140
},
"hsl": {
"h": 266.939,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.39886,
"c": 0.15428,
"h": 300
},
"luminance": 0.05528
}Semantic roles & 50–950 ramp
primary
#562A8C
secondary
#8DB55C
accent
#DD4B9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F