#562B97#562B97
#562B97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.166 H 296.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #562B97 |
|---|---|
| RGB | rgb(86, 43, 151) |
| HSL | hsl(264, 56%, 38%) |
| HSV | hsv(264, 72%, 59%) |
| CMYK | cmyk(43%, 71.5%, 0%, 40.8%) |
| CIE-LAB | lab(29.26, 43.18, -51.93) |
| CIE-LCH | lch(29.26, 67.53, 309.75°) |
| OKLab | oklab(40.93% 0.0741 -0.1484) |
| OKLCH | oklch(40.93% 0.166 296.5) |
| XYZ | xyz(10.2861, 5.9403, 29.8768) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.52
Indigo Blue
#3A18B1
ΔE00 6.51
Darkslateblue
#483D8B
ΔE00 6.53
Indigo
#4B0082
ΔE00 7.18
Blueberry
#464196
ΔE00 7.39
Purple (survey)
#7E1E9C
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562B97 #6C972B
analogous
#2B3697 #562B97 #8C2B97
triadic
#562B97 #97562B #2B9756
tetradic
#562B97 #972B36 #6C972B #2B978C
square
#562B97 #972B36 #6C972B #2B978C
split-complementary
#562B97 #978C2B #36972B
monochromatic
#201038 #3B1D67 #562B97 #7139C7 #9368D4
Accessibility & contrast
On white
9.60
#562B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#562B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562B97
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562B97 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#45465E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562b97; /* rgb */ color: rgb(86, 43, 151); /* oklch */ color: oklch(40.9% 0.166 296.5);
Tailwind
colors: {
custom: {
50: '#8c68b6',
500: '#562b97',
950: '#000000',
},
}SCSS
$custom: #562b97; $custom-light: #8c68b6; $custom-dark: #000000;
JSON
{
"hex": "#562b97",
"rgb": {
"r": 86,
"g": 43,
"b": 151
},
"hsl": {
"h": 263.889,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.40929,
"c": 0.16593,
"h": 296.5
},
"luminance": 0.05941
}Semantic roles & 50–950 ramp
primary
#562B97
secondary
#98BB63
accent
#DF49A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80