#562B98#562B98
#562B98 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 296.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #562B98 |
|---|---|
| RGB | rgb(86, 43, 152) |
| HSL | hsl(264, 56%, 38%) |
| HSV | hsv(264, 72%, 60%) |
| CMYK | cmyk(43.4%, 71.7%, 0%, 40.4%) |
| CIE-LAB | lab(29.34, 43.45, -52.40) |
| CIE-LCH | lch(29.34, 68.07, 309.66°) |
| OKLab | oklab(41.01% 0.0739 -0.1498) |
| OKLCH | oklch(41.01% 0.167 296.3) |
| XYZ | xyz(10.3676, 5.9730, 30.3063) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.55
Indigo Blue
#3A18B1
ΔE00 6.40
Darkslateblue
#483D8B
ΔE00 6.56
Indigo
#4B0082
ΔE00 7.24
Blueberry
#464196
ΔE00 7.38
Violet Blue
#510AC9
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562B98 #6D982B
analogous
#2B3698 #562B98 #8C2B98
triadic
#562B98 #98562B #2B9856
tetradic
#562B98 #982B36 #6D982B #2B988C
square
#562B98 #982B36 #6D982B #2B988C
split-complementary
#562B98 #988C2B #36982B
monochromatic
#201039 #3B1E68 #562B98 #7139C7 #9369D5
Accessibility & contrast
On white
9.57
#562B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#562B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562B98
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562B98 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#45465E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562b98; /* rgb */ color: rgb(86, 43, 152); /* oklch */ color: oklch(41.0% 0.167 296.3);
Tailwind
colors: {
custom: {
50: '#8c68b7',
500: '#562b98',
950: '#000000',
},
}SCSS
$custom: #562b98; $custom-light: #8c68b7; $custom-dark: #000000;
JSON
{
"hex": "#562b98",
"rgb": {
"r": 86,
"g": 43,
"b": 152
},
"hsl": {
"h": 263.67,
"s": 55.897,
"l": 38.235
},
"oklch": {
"l": 0.41014,
"c": 0.16709,
"h": 296.3
},
"luminance": 0.05973
}Semantic roles & 50–950 ramp
primary
#562B98
secondary
#99BB64
accent
#DF49A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80