#562A8F#562A8F
#562A8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.158 H 299.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #562A8F |
|---|---|
| RGB | rgb(86, 42, 143) |
| HSL | hsl(266, 55%, 36%) |
| HSV | hsv(266, 71%, 56%) |
| CMYK | cmyk(39.9%, 70.6%, 0%, 43.9%) |
| CIE-LAB | lab(28.43, 41.54, -48.37) |
| CIE-LCH | lch(28.43, 63.76, 310.66°) |
| OKLab | oklab(40.13% 0.0766 -0.138) |
| OKLCH | oklch(40.13% 0.158 299) |
| XYZ | xyz(9.6224, 5.6174, 26.5586) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.65
Darkslateblue
#483D8B
ΔE00 6.57
Indigo
#4B0082
ΔE00 6.63
Indigo Blue
#3A18B1
ΔE00 7.43
Purple (survey)
#7E1E9C
ΔE00 7.52
Blueberry
#464196
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A8F #638F2A
analogous
#2A308F #562A8F #892A8F
triadic
#562A8F #8F562A #2A8F56
tetradic
#562A8F #8F2A30 #638F2A #2A8F89
square
#562A8F #8F2A30 #638F2A #2A8F89
split-complementary
#562A8F #8F892A #308F2A
monochromatic
#1D0E30 #3A1C60 #562A8F #7238BE #9362D1
Accessibility & contrast
On white
9.89
#562A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#562A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A8F
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A8F | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#494259
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #562a8f; /* rgb */ color: rgb(86, 42, 143); /* oklch */ color: oklch(40.1% 0.158 299.0);
Tailwind
colors: {
custom: {
50: '#8b67b1',
500: '#562a8f',
950: '#000000',
},
}SCSS
$custom: #562a8f; $custom-light: #8b67b1; $custom-dark: #000000;
JSON
{
"hex": "#562a8f",
"rgb": {
"r": 86,
"g": 42,
"b": 143
},
"hsl": {
"h": 266.139,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.40131,
"c": 0.1578,
"h": 299
},
"luminance": 0.05618
}Semantic roles & 50–950 ramp
primary
#562A8F
secondary
#90B75E
accent
#DE4A9D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80