#562D7C#562D7C
#562D7C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.131 H 305.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #562D7C |
|---|---|
| RGB | rgb(86, 45, 124) |
| HSL | hsl(271, 47%, 33%) |
| HSV | hsv(271, 64%, 49%) |
| CMYK | cmyk(30.6%, 63.7%, 0%, 51.4%) |
| CIE-LAB | lab(27.60, 34.90, -37.84) |
| CIE-LCH | lch(27.60, 51.47, 312.68°) |
| OKLab | oklab(39.09% 0.075 -0.107) |
| OKLCH | oklch(39.09% 0.131 305) |
| XYZ | xyz(8.4134, 5.3105, 19.6467) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.37
Darkslateblue
#483D8B
ΔE00 6.92
Royal Purple (survey)
#4B006E
ΔE00 7.82
Indigo
#4B0082
ΔE00 7.86
Darkish Purple
#751973
ΔE00 8.42
Purple (survey)
#7E1E9C
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562D7C #537C2D
analogous
#2E2D7C #562D7C #7C2D7A
triadic
#562D7C #7C562D #2D7C56
tetradic
#562D7C #7C2E2D #537C2D #2D7A7C
square
#562D7C #7C2E2D #537C2D #2D7A7C
split-complementary
#562D7C #7A7C2D #2D7C2E
monochromatic
#180C22 #371D4F #562D7C #753DA9 #945FC5
Accessibility & contrast
On white
10.18
#562D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#562D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562D7C
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562D7C | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#02407E
Deuteranopia (green-blind)
#1B417A
Tritanopia (blue-blind)
#4F3D50
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #562d7c; /* rgb */ color: rgb(86, 45, 124); /* oklch */ color: oklch(39.1% 0.131 305.0);
Tailwind
colors: {
custom: {
50: '#8968a2',
500: '#562d7c',
950: '#000000',
},
}SCSS
$custom: #562d7c; $custom-light: #8968a2; $custom-dark: #000000;
JSON
{
"hex": "#562d7c",
"rgb": {
"r": 86,
"g": 45,
"b": 124
},
"hsl": {
"h": 271.139,
"s": 46.746,
"l": 33.137
},
"oklch": {
"l": 0.39088,
"c": 0.13069,
"h": 305
},
"luminance": 0.0531
}Semantic roles & 50–950 ramp
primary
#562D7C
secondary
#81AB5A
accent
#D65191
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F