#562F8A#562F8A
#562F8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.145 H 299.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #562F8A |
|---|---|
| RGB | rgb(86, 47, 138) |
| HSL | hsl(266, 49%, 36%) |
| HSV | hsv(266, 66%, 54%) |
| CMYK | cmyk(37.7%, 65.9%, 0%, 45.9%) |
| CIE-LAB | lab(29.02, 37.50, -44.31) |
| CIE-LCH | lch(29.02, 58.04, 310.24°) |
| OKLab | oklab(40.44% 0.0715 -0.126) |
| OKLCH | oklch(40.44% 0.145 299.6) |
| XYZ | xyz(9.4406, 5.8463, 24.6709) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.57
Darkslateblue
#483D8B
ΔE00 5.59
Blueberry
#464196
ΔE00 7.15
Indigo
#4B0082
ΔE00 7.71
Purple (survey)
#7E1E9C
ΔE00 7.96
Indigo Blue
#3A18B1
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562F8A #638A2F
analogous
#2F368A #562F8A #842F8A
triadic
#562F8A #8A562F #2F8A56
tetradic
#562F8A #8A2F36 #638A2F #2F8A84
square
#562F8A #8A2F36 #638A2F #2F8A84
split-complementary
#562F8A #8A842F #368A2F
monochromatic
#1D102F #3A1F5C #562F8A #723FB8 #9368CC
Accessibility & contrast
On white
9.68
#562F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#562F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562F8A
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562F8A | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#024488
Tritanopia (blue-blind)
#4A4358
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #562f8a; /* rgb */ color: rgb(86, 47, 138); /* oklch */ color: oklch(40.4% 0.145 299.6);
Tailwind
colors: {
custom: {
50: '#8a6aad',
500: '#562f8a',
950: '#000000',
},
}SCSS
$custom: #562f8a; $custom-light: #8a6aad; $custom-dark: #000000;
JSON
{
"hex": "#562f8a",
"rgb": {
"r": 86,
"g": 47,
"b": 138
},
"hsl": {
"h": 265.714,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.40437,
"c": 0.14493,
"h": 299.6
},
"luminance": 0.05846
}Semantic roles & 50–950 ramp
primary
#562F8A
secondary
#90B362
accent
#D94F9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F