#562A9C#562A9C
#562A9C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.173 H 295.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #562A9C |
|---|---|
| RGB | rgb(86, 42, 156) |
| HSL | hsl(263, 58%, 39%) |
| HSV | hsv(263, 73%, 61%) |
| CMYK | cmyk(44.9%, 73.1%, 0%, 38.8%) |
| CIE-LAB | lab(29.50, 45.05, -54.59) |
| CIE-LCH | lch(29.50, 70.78, 309.53°) |
| OKLab | oklab(41.23% 0.0741 -0.1563) |
| OKLCH | oklch(41.23% 0.173 295.4) |
| XYZ | xyz(10.6649, 6.0344, 32.0489) |
| Luminance | 0.0604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.82
Indigo Blue
#3A18B1
ΔE00 5.87
Violet Blue
#510AC9
ΔE00 6.88
Darkslateblue
#483D8B
ΔE00 6.92
Purple Blue
#5D21D0
ΔE00 7.14
Indigo
#4B0082
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562A9C #709C2A
analogous
#2A379C #562A9C #8F2A9C
triadic
#562A9C #9C562A #2A9C56
tetradic
#562A9C #9C2A37 #709C2A #2A9C8F
square
#562A9C #9C2A37 #709C2A #2A9C8F
split-complementary
#562A9C #9C8F2A #379C2A
monochromatic
#21103C #3B1D6C #562A9C #7139CA #946AD7
Accessibility & contrast
On white
9.52
#562A9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#562A9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562A9C
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562A9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562A9C | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#434760
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562a9c; /* rgb */ color: rgb(86, 42, 156); /* oklch */ color: oklch(41.2% 0.173 295.4);
Tailwind
colors: {
custom: {
50: '#8c68ba',
500: '#562a9c',
950: '#000000',
},
}SCSS
$custom: #562a9c; $custom-light: #8c68ba; $custom-dark: #000000;
JSON
{
"hex": "#562a9c",
"rgb": {
"r": 86,
"g": 42,
"b": 156
},
"hsl": {
"h": 263.158,
"s": 57.576,
"l": 38.824
},
"oklch": {
"l": 0.41228,
"c": 0.17295,
"h": 295.4
},
"luminance": 0.06035
}Semantic roles & 50–950 ramp
primary
#562A9C
secondary
#9BBD65
accent
#E147A5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81