#562D7F#562D7F
#562D7F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.134 H 303.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).
Color values
| HEX | #562D7F |
|---|---|
| RGB | rgb(86, 45, 127) |
| HSL | hsl(270, 48%, 34%) |
| HSV | hsv(270, 65%, 50%) |
| CMYK | cmyk(32.3%, 64.6%, 0%, 50.2%) |
| CIE-LAB | lab(27.81, 35.68, -39.39) |
| CIE-LCH | lch(27.81, 53.15, 312.17°) |
| OKLab | oklab(39.31% 0.0748 -0.1116) |
| OKLCH | oklch(39.31% 0.134 303.8) |
| XYZ | xyz(8.6060, 5.3875, 20.6611) |
| Luminance | 0.0539 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.91
Darkslateblue
#483D8B
ΔE00 6.62
Indigo
#4B0082
ΔE00 7.63
Royal Purple (survey)
#4B006E
ΔE00 7.86
Purple (survey)
#7E1E9C
ΔE00 8.32
Blueberry
#464196
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562D7F #567F2D
analogous
#2D2D7F #562D7F #7F2D7F
triadic
#562D7F #7F562D #2D7F56
tetradic
#562D7F #7F2D2D #567F2D #2D7F7F
square
#562D7F #7F2D2D #567F2D #2D7F7F
split-complementary
#562D7F #7F7F2D #2D7F2D
monochromatic
#190D25 #371D52 #562D7F #753DAC #9360C7
Accessibility & contrast
On white
10.11
#562D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#562D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562D7F
10.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562D7F | 1.00 | 10.11 | 2.08 | 10.11 |
| #FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#17427D
Tritanopia (blue-blind)
#4E3E51
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #562d7f; /* rgb */ color: rgb(86, 45, 127); /* oklch */ color: oklch(39.3% 0.134 303.8);
Tailwind
colors: {
custom: {
50: '#8968a5',
500: '#562d7f',
950: '#000000',
},
}SCSS
$custom: #562d7f; $custom-light: #8968a5; $custom-dark: #000000;
JSON
{
"hex": "#562d7f",
"rgb": {
"r": 86,
"g": 45,
"b": 127
},
"hsl": {
"h": 270,
"s": 47.674,
"l": 33.725
},
"oklch": {
"l": 0.39307,
"c": 0.13437,
"h": 303.8
},
"luminance": 0.05388
}Semantic roles & 50–950 ramp
primary
#562D7F
secondary
#84AD5B
accent
#D75194
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F