#562C94#562C94
#562C94 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.161 H 297.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #562C94 |
|---|---|
| RGB | rgb(86, 44, 148) |
| HSL | hsl(264, 54%, 38%) |
| HSV | hsv(264, 70%, 58%) |
| CMYK | cmyk(41.9%, 70.3%, 0%, 42%) |
| CIE-LAB | lab(29.20, 41.84, -50.18) |
| CIE-LCH | lch(29.20, 65.34, 309.82°) |
| OKLab | oklab(40.81% 0.0736 -0.1433) |
| OKLCH | oklch(40.81% 0.161 297.2) |
| XYZ | xyz(10.0823, 5.9177, 28.6223) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.38
Darkslateblue
#483D8B
ΔE00 6.24
Indigo Blue
#3A18B1
ΔE00 6.99
Indigo
#4B0082
ΔE00 7.23
Blueberry
#464196
ΔE00 7.25
Purple (survey)
#7E1E9C
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562C94 #6A942C
analogous
#2C3694 #562C94 #8A2C94
triadic
#562C94 #94562C #2C9456
tetradic
#562C94 #942C36 #6A942C #2C948A
square
#562C94 #942C36 #6A942C #2C948A
split-complementary
#562C94 #948A2C #36942C
monochromatic
#1F1036 #3B1E65 #562C94 #713AC3 #9368D2
Accessibility & contrast
On white
9.62
#562C94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#562C94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562C94
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562C94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562C94 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#46455C
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562c94; /* rgb */ color: rgb(86, 44, 148); /* oklch */ color: oklch(40.8% 0.161 297.2);
Tailwind
colors: {
custom: {
50: '#8b68b4',
500: '#562c94',
950: '#000000',
},
}SCSS
$custom: #562c94; $custom-light: #8b68b4; $custom-dark: #000000;
JSON
{
"hex": "#562c94",
"rgb": {
"r": 86,
"g": 44,
"b": 148
},
"hsl": {
"h": 264.231,
"s": 54.167,
"l": 37.647
},
"oklch": {
"l": 0.40812,
"c": 0.16112,
"h": 297.2
},
"luminance": 0.05918
}Semantic roles & 50–950 ramp
primary
#562C94
secondary
#96B963
accent
#DE4AA2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80