#562AB3#562AB3
#562AB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.199 H 290.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #562AB3 |
|---|---|
| RGB | rgb(86, 42, 179) |
| HSL | hsl(259, 62%, 43%) |
| HSV | hsv(259, 77%, 70%) |
| CMYK | cmyk(52%, 76.5%, 0%, 29.8%) |
| CIE-LAB | lab(31.55, 51.32, -65.08) |
| CIE-LCH | lch(31.55, 82.88, 308.26°) |
| OKLab | oklab(43.3% 0.0684 -0.187) |
| OKLCH | oklch(43.3% 0.199 290.1) |
| XYZ | xyz(12.8001, 6.8885, 43.2942) |
| Luminance | 0.0689 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.91
Violet Blue
#510AC9
ΔE00 4.35
Indigo Blue
#3A18B1
ΔE00 4.82
Blurple
#5539CC
ΔE00 4.89
Blue With A Hint Of Purple
#533CC6
ΔE00 4.95
Rebeccapurple
#663399
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562AB3 #87B32A
analogous
#2A42B3 #562AB3 #9A2AB3
triadic
#562AB3 #B3562A #2AB356
tetradic
#562AB3 #B32A42 #87B32A #2AB39A
square
#562AB3 #B32A42 #87B32A #2AB39A
split-complementary
#562AB3 #B39A2A #42B32A
monochromatic
#261350 #3E1E81 #562AB3 #7446D4 #9978DF
Accessibility & contrast
On white
8.83
#562AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#562AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562AB3
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562AB3 | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#34506D
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #562ab3; /* rgb */ color: rgb(86, 42, 179); /* oklch */ color: oklch(43.3% 0.199 290.1);
Tailwind
colors: {
custom: {
50: '#8f69cb',
500: '#562ab3',
950: '#000000',
},
}SCSS
$custom: #562ab3; $custom-light: #8f69cb; $custom-dark: #000000;
JSON
{
"hex": "#562ab3",
"rgb": {
"r": 86,
"g": 42,
"b": 179
},
"hsl": {
"h": 259.27,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.43304,
"c": 0.19915,
"h": 290.1
},
"luminance": 0.06889
}Semantic roles & 50–950 ramp
primary
#562AB3
secondary
#ACC772
accent
#E543B1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82