#562F8F#562F8F
#562F8F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.151 H 298.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #562F8F |
|---|---|
| RGB | rgb(86, 47, 143) |
| HSL | hsl(264, 51%, 37%) |
| HSV | hsv(264, 67%, 56%) |
| CMYK | cmyk(39.9%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(29.40, 38.86, -46.79) |
| CIE-LCH | lch(29.40, 60.82, 309.71°) |
| OKLab | oklab(40.83% 0.071 -0.1333) |
| OKLCH | oklch(40.83% 0.151 298) |
| XYZ | xyz(9.8109, 5.9945, 26.6214) |
| Luminance | 0.0600 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.25
Darkslateblue
#483D8B
ΔE00 5.54
Blueberry
#464196
ΔE00 6.84
Indigo
#4B0082
ΔE00 7.73
Purple (survey)
#7E1E9C
ΔE00 7.86
Indigo Blue
#3A18B1
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562F8F #688F2F
analogous
#2F388F #562F8F #862F8F
triadic
#562F8F #8F562F #2F8F56
tetradic
#562F8F #8F2F38 #688F2F #2F8F86
square
#562F8F #8F2F38 #688F2F #2F8F86
split-complementary
#562F8F #8F862F #388F2F
monochromatic
#1F1133 #3A2061 #562F8F #723EBD #936ACE
Accessibility & contrast
On white
9.55
#562F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#562F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562F8F
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562F8F | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#48455B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #562f8f; /* rgb */ color: rgb(86, 47, 143); /* oklch */ color: oklch(40.8% 0.151 298.0);
Tailwind
colors: {
custom: {
50: '#8a6ab0',
500: '#562f8f',
950: '#000000',
},
}SCSS
$custom: #562f8f; $custom-light: #8a6ab0; $custom-dark: #000000;
JSON
{
"hex": "#562f8f",
"rgb": {
"r": 86,
"g": 47,
"b": 143
},
"hsl": {
"h": 264.375,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.40828,
"c": 0.15107,
"h": 298
},
"luminance": 0.05995
}Semantic roles & 50–950 ramp
primary
#562F8F
secondary
#94B565
accent
#DA4EA1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80