#562FB6#562FB6
#562FB6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.197 H 288.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #562FB6 |
|---|---|
| RGB | rgb(86, 47, 182) |
| HSL | hsl(257, 59%, 45%) |
| HSV | hsv(257, 74%, 71%) |
| CMYK | cmyk(52.7%, 74.2%, 0%, 28.6%) |
| CIE-LAB | lab(32.67, 49.75, -65.02) |
| CIE-LCH | lch(32.67, 81.87, 307.42°) |
| OKLab | oklab(44.18% 0.0637 -0.1869) |
| OKLCH | oklch(44.18% 0.197 288.8) |
| XYZ | xyz(13.2953, 7.3882, 44.9724) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.83
Blue With A Hint Of Purple
#533CC6
ΔE00 3.86
Blurple
#5539CC
ΔE00 3.89
Ocean Blue
#4F42B5
ΔE00 4.91
Violet Blue
#510AC9
ΔE00 4.96
Bluey Purple
#6241C7
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562FB6 #8FB62F
analogous
#2F4CB6 #562FB6 #992FB6
triadic
#562FB6 #B6562F #2FB656
tetradic
#562FB6 #B62F4C #8FB62F #2FB699
square
#562FB6 #B62F4C #8FB62F #2FB699
split-complementary
#562FB6 #B6992F #4CB62F
monochromatic
#281655 #3F2285 #562FB6 #7650D2 #9C81DE
Accessibility & contrast
On white
8.48
#562FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#562FB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562FB6
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562FB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562FB6 | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#315470
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #562fb6; /* rgb */ color: rgb(86, 47, 182); /* oklch */ color: oklch(44.2% 0.197 288.8);
Tailwind
colors: {
custom: {
50: '#8f6ccd',
500: '#562fb6',
950: '#000000',
},
}SCSS
$custom: #562fb6; $custom-light: #8f6ccd; $custom-dark: #000000;
JSON
{
"hex": "#562fb6",
"rgb": {
"r": 86,
"g": 47,
"b": 182
},
"hsl": {
"h": 257.333,
"s": 58.952,
"l": 44.902
},
"oklch": {
"l": 0.44177,
"c": 0.19744,
"h": 288.8
},
"luminance": 0.07389
}Semantic roles & 50–950 ramp
primary
#562FB6
secondary
#B1C779
accent
#E246B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82