#562E97#562E97
#562E97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.162 H 296.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #562E97 |
|---|---|
| RGB | rgb(86, 46, 151) |
| HSL | hsl(263, 53%, 39%) |
| HSV | hsv(263, 70%, 59%) |
| CMYK | cmyk(43%, 69.5%, 0%, 40.8%) |
| CIE-LAB | lab(29.83, 41.60, -51.00) |
| CIE-LCH | lch(29.83, 65.82, 309.20°) |
| OKLab | oklab(41.33% 0.071 -0.1457) |
| OKLCH | oklch(41.33% 0.162 296) |
| XYZ | xyz(10.3992, 6.1666, 29.9145) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.26
Darkslateblue
#483D8B
ΔE00 5.94
Blueberry
#464196
ΔE00 6.79
Indigo Blue
#3A18B1
ΔE00 6.88
Ocean Blue
#4F42B5
ΔE00 7.20
Indigo
#4B0082
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562E97 #6F972E
analogous
#2E3A97 #562E97 #8A2E97
triadic
#562E97 #97562E #2E9756
tetradic
#562E97 #972E3A #6F972E #2E978A
square
#562E97 #972E3A #6F972E #2E978A
split-complementary
#562E97 #978A2E #3A972E
monochromatic
#211139 #3B2068 #562E97 #713EC4 #946DD2
Accessibility & contrast
On white
9.40
#562E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#562E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562E97
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562E97 | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#45475F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #562e97; /* rgb */ color: rgb(86, 46, 151); /* oklch */ color: oklch(41.3% 0.162 296.0);
Tailwind
colors: {
custom: {
50: '#8b6ab6',
500: '#562e97',
950: '#000000',
},
}SCSS
$custom: #562e97; $custom-light: #8b6ab6; $custom-dark: #000000;
JSON
{
"hex": "#562e97",
"rgb": {
"r": 86,
"g": 46,
"b": 151
},
"hsl": {
"h": 262.857,
"s": 53.299,
"l": 38.627
},
"oklch": {
"l": 0.41334,
"c": 0.16211,
"h": 296
},
"luminance": 0.06167
}Semantic roles & 50–950 ramp
primary
#562E97
secondary
#9ABA67
accent
#DD4BA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0711
muted
#7D7A80