#562F8E#562F8E
#562F8E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.150 H 298.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #562F8E |
|---|---|
| RGB | rgb(86, 47, 142) |
| HSL | hsl(265, 50%, 37%) |
| HSV | hsv(265, 67%, 56%) |
| CMYK | cmyk(39.4%, 66.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.32, 38.59, -46.29) |
| CIE-LCH | lch(29.32, 60.27, 309.81°) |
| OKLab | oklab(40.75% 0.0711 -0.1319) |
| OKLCH | oklch(40.75% 0.15 298.3) |
| XYZ | xyz(9.7355, 5.9643, 26.2243) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.30
Darkslateblue
#483D8B
ΔE00 5.54
Blueberry
#464196
ΔE00 6.89
Indigo
#4B0082
ΔE00 7.72
Purple (survey)
#7E1E9C
ΔE00 7.87
Indigo Blue
#3A18B1
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562F8E #678E2F
analogous
#2F378E #562F8E #862F8E
triadic
#562F8E #8E562F #2F8E56
tetradic
#562F8E #8E2F37 #678E2F #2F8E86
square
#562F8E #8E2F37 #678E2F #2F8E86
split-complementary
#562F8E #8E862F #378E2F
monochromatic
#1E1132 #3A2060 #562F8E #723EBC #936ACE
Accessibility & contrast
On white
9.58
#562F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#562F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562F8E
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562F8E | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#49455A
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562f8e; /* rgb */ color: rgb(86, 47, 142); /* oklch */ color: oklch(40.7% 0.150 298.3);
Tailwind
colors: {
custom: {
50: '#8a6ab0',
500: '#562f8e',
950: '#000000',
},
}SCSS
$custom: #562f8e; $custom-light: #8a6ab0; $custom-dark: #000000;
JSON
{
"hex": "#562f8e",
"rgb": {
"r": 86,
"g": 47,
"b": 142
},
"hsl": {
"h": 264.632,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.40749,
"c": 0.14985,
"h": 298.3
},
"luminance": 0.05964
}Semantic roles & 50–950 ramp
primary
#562F8E
secondary
#94B564
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F