#562A6F#562A6F
#562A6F is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.7% C 0.120 H 311.4°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).
Color values
| HEX | #562A6F |
|---|---|
| RGB | rgb(86, 42, 111) |
| HSL | hsl(278, 45%, 30%) |
| HSV | hsv(278, 62%, 44%) |
| CMYK | cmyk(22.5%, 62.2%, 0%, 56.5%) |
| CIE-LAB | lab(26.11, 33.30, -31.97) |
| CIE-LCH | lch(26.11, 46.16, 316.16°) |
| OKLab | oklab(37.72% 0.0792 -0.0898) |
| OKLCH | oklch(37.72% 0.12 311.4) |
| XYZ | xyz(7.5344, 4.7822, 15.5620) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkish Purple
#751973
ΔE00 7.22
Royal Purple (survey)
#4B006E
ΔE00 7.54
Rebeccapurple
#663399
ΔE00 7.72
Plum Purple
#4E0550
ΔE00 8.24
Grape Purple
#5D1451
ΔE00 8.54
Indigo
#4B0082
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A6F #436F2A
analogous
#342A6F #562A6F #6F2A65
triadic
#562A6F #6F562A #2A6F56
tetradic
#562A6F #6F342A #436F2A #2A656F
square
#562A6F #6F342A #436F2A #2A656F
split-complementary
#562A6F #656F2A #2A6F34
monochromatic
#110816 #341943 #562A6F #783B9B #9855BF
Accessibility & contrast
On white
10.73
#562A6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#562A6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A6F
10.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A6F | 1.00 | 10.73 | 1.96 | 10.73 |
| #FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#243F6D
Tritanopia (blue-blind)
#533748
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #562a6f; /* rgb */ color: rgb(86, 42, 111); /* oklch */ color: oklch(37.7% 0.120 311.4);
Tailwind
colors: {
custom: {
50: '#886699',
500: '#562a6f',
950: '#000000',
},
}SCSS
$custom: #562a6f; $custom-light: #886699; $custom-dark: #000000;
JSON
{
"hex": "#562a6f",
"rgb": {
"r": 86,
"g": 42,
"b": 111
},
"hsl": {
"h": 278.261,
"s": 45.098,
"l": 30
},
"oklch": {
"l": 0.37719,
"c": 0.11978,
"h": 311.4
},
"luminance": 0.04782
}Semantic roles & 50–950 ramp
primary
#562A6F
secondary
#70A154
accent
#D55382
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E