#562D9F#562D9F
#562D9F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.173 H 294.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).
Color values
| HEX | #562D9F |
|---|---|
| RGB | rgb(86, 45, 159) |
| HSL | hsl(262, 56%, 40%) |
| HSV | hsv(262, 72%, 62%) |
| CMYK | cmyk(45.9%, 71.7%, 0%, 37.6%) |
| CIE-LAB | lab(30.30, 44.34, -55.11) |
| CIE-LCH | lch(30.30, 70.73, 308.82°) |
| OKLab | oklab(41.88% 0.0706 -0.1578) |
| OKLCH | oklch(41.88% 0.173 294.1) |
| XYZ | xyz(11.0324, 6.3581, 33.4401) |
| Luminance | 0.0636 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.74
Indigo Blue
#3A18B1
ΔE00 5.96
Ocean Blue
#4F42B5
ΔE00 6.55
Darkslateblue
#483D8B
ΔE00 6.57
Purple Blue
#5D21D0
ΔE00 6.78
Blue With A Hint Of Purple
#533CC6
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562D9F #769F2D
analogous
#2D3D9F #562D9F #8F2D9F
triadic
#562D9F #9F562D #2D9F56
tetradic
#562D9F #9F2D3D #769F2D #2D9F8F
square
#562D9F #9F2D3D #769F2D #2D9F8F
split-complementary
#562D9F #9F8F2D #3D9F2D
monochromatic
#221240 #3C206F #562D9F #7140C9 #9570D6
Accessibility & contrast
On white
9.24
#562D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#562D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562D9F
9.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562D9F | 1.00 | 9.24 | 2.27 | 9.24 |
| #FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#414A63
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #562d9f; /* rgb */ color: rgb(86, 45, 159); /* oklch */ color: oklch(41.9% 0.173 294.1);
Tailwind
colors: {
custom: {
50: '#8c69bc',
500: '#562d9f',
950: '#000000',
},
}SCSS
$custom: #562d9f; $custom-light: #8c69bc; $custom-dark: #000000;
JSON
{
"hex": "#562d9f",
"rgb": {
"r": 86,
"g": 45,
"b": 159
},
"hsl": {
"h": 261.579,
"s": 55.882,
"l": 40
},
"oklch": {
"l": 0.41875,
"c": 0.17288,
"h": 294.1
},
"luminance": 0.06358
}Semantic roles & 50–950 ramp
primary
#562D9F
secondary
#A0BE6A
accent
#DF49A9
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81