#562C8D#562C8D
#562C8D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.153 H 299.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #562C8D |
|---|---|
| RGB | rgb(86, 44, 141) |
| HSL | hsl(266, 52%, 36%) |
| HSV | hsv(266, 69%, 55%) |
| CMYK | cmyk(39%, 68.8%, 0%, 44.7%) |
| CIE-LAB | lab(28.65, 39.95, -46.77) |
| CIE-LCH | lch(28.65, 61.51, 310.51°) |
| OKLab | oklab(40.24% 0.0747 -0.1333) |
| OKLCH | oklch(40.24% 0.153 299.3) |
| XYZ | xyz(9.5450, 5.7028, 25.7920) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.54
Darkslateblue
#483D8B
ΔE00 6.17
Indigo
#4B0082
ΔE00 7.02
Blueberry
#464196
ΔE00 7.54
Purple (survey)
#7E1E9C
ΔE00 7.66
Indigo Blue
#3A18B1
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562C8D #638D2C
analogous
#2C338D #562C8D #872C8D
triadic
#562C8D #8D562C #2C8D56
tetradic
#562C8D #8D2C33 #638D2C #2C8D87
square
#562C8D #8D2C33 #638D2C #2C8D87
split-complementary
#562C8D #8D872C #338D2C
monochromatic
#1D0F30 #3A1D5E #562C8D #723BBC #9365CF
Accessibility & contrast
On white
9.81
#562C8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#562C8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562C8D
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562C8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562C8D | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#494359
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #562c8d; /* rgb */ color: rgb(86, 44, 141); /* oklch */ color: oklch(40.2% 0.153 299.3);
Tailwind
colors: {
custom: {
50: '#8a68af',
500: '#562c8d',
950: '#000000',
},
}SCSS
$custom: #562c8d; $custom-light: #8a68af; $custom-dark: #000000;
JSON
{
"hex": "#562c8d",
"rgb": {
"r": 86,
"g": 44,
"b": 141
},
"hsl": {
"h": 265.979,
"s": 52.432,
"l": 36.275
},
"oklch": {
"l": 0.40241,
"c": 0.15278,
"h": 299.3
},
"luminance": 0.05703
}Semantic roles & 50–950 ramp
primary
#562C8D
secondary
#90B560
accent
#DC4C9E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F