#562897#562897
#562897 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.170 H 297.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #562897 |
|---|---|
| RGB | rgb(86, 40, 151) |
| HSL | hsl(265, 58%, 37%) |
| HSV | hsv(265, 74%, 59%) |
| CMYK | cmyk(43%, 73.5%, 0%, 40.8%) |
| CIE-LAB | lab(28.72, 44.69, -52.81) |
| CIE-LCH | lch(28.72, 69.18, 310.24°) |
| OKLab | oklab(40.55% 0.0771 -0.151) |
| OKLCH | oklch(40.55% 0.17 297.1) |
| XYZ | xyz(10.1810, 5.7302, 29.8418) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 6.20
Indigo
#4B0082
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 7.09
Violet Blue
#510AC9
ΔE00 7.41
Purple (survey)
#7E1E9C
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562897 #699728
analogous
#283197 #562897 #8E2897
triadic
#562897 #975628 #289756
tetradic
#562897 #972831 #699728 #28978E
square
#562897 #972831 #699728 #28978E
split-complementary
#562897 #978E28 #319728
monochromatic
#1F0E36 #3A1B67 #562897 #7235C7 #9364D6
Accessibility & contrast
On white
9.79
#562897 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#562897 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562897
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562897 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562897 | 1.00 | 9.79 | 2.15 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#45445D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #562897; /* rgb */ color: rgb(86, 40, 151); /* oklch */ color: oklch(40.5% 0.170 297.1);
Tailwind
colors: {
custom: {
50: '#8c66b6',
500: '#562897',
950: '#000000',
},
}SCSS
$custom: #562897; $custom-light: #8c66b6; $custom-dark: #000000;
JSON
{
"hex": "#562897",
"rgb": {
"r": 86,
"g": 40,
"b": 151
},
"hsl": {
"h": 264.865,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.40546,
"c": 0.16957,
"h": 297.1
},
"luminance": 0.0573
}Semantic roles & 50–950 ramp
primary
#562897
secondary
#95BC5F
accent
#E146A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80