#562F96#562F96
#562F96 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.160 H 296.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #562F96 |
|---|---|
| RGB | rgb(86, 47, 150) |
| HSL | hsl(263, 52%, 39%) |
| HSV | hsv(263, 69%, 59%) |
| CMYK | cmyk(42.7%, 68.7%, 0%, 41.2%) |
| CIE-LAB | lab(29.94, 40.79, -50.20) |
| CIE-LCH | lch(29.94, 64.68, 309.09°) |
| OKLab | oklab(41.39% 0.0701 -0.1434) |
| OKLCH | oklch(41.39% 0.16 296) |
| XYZ | xyz(10.3578, 6.2133, 29.5018) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.18
Darkslateblue
#483D8B
ΔE00 5.70
Blueberry
#464196
ΔE00 6.60
Indigo Blue
#3A18B1
ΔE00 7.14
Ocean Blue
#4F42B5
ΔE00 7.16
Purple (survey)
#7E1E9C
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562F96 #6F962F
analogous
#2F3C96 #562F96 #892F96
triadic
#562F96 #96562F #2F9656
tetradic
#562F96 #962F3C #6F962F #2F9689
square
#562F96 #962F3C #6F962F #2F9689
split-complementary
#562F96 #96892F #3C962F
monochromatic
#211239 #3B2067 #562F96 #713FC3 #946ED2
Accessibility & contrast
On white
9.36
#562F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#562F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562F96
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562F96 | 1.00 | 9.36 | 2.24 | 9.36 |
| #FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#45485E
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #562f96; /* rgb */ color: rgb(86, 47, 150); /* oklch */ color: oklch(41.4% 0.160 296.0);
Tailwind
colors: {
custom: {
50: '#8b6ab6',
500: '#562f96',
950: '#000000',
},
}SCSS
$custom: #562f96; $custom-light: #8b6ab6; $custom-dark: #000000;
JSON
{
"hex": "#562f96",
"rgb": {
"r": 86,
"g": 47,
"b": 150
},
"hsl": {
"h": 262.718,
"s": 52.284,
"l": 38.627
},
"oklch": {
"l": 0.41392,
"c": 0.1596,
"h": 296
},
"luminance": 0.06213
}Semantic roles & 50–950 ramp
primary
#562F96
secondary
#9AB968
accent
#DC4CA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80