#562F7F#562F7F
#562F7F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.131 H 303.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).
Color values
| HEX | #562F7F |
|---|---|
| RGB | rgb(86, 47, 127) |
| HSL | hsl(269, 46%, 34%) |
| HSV | hsv(269, 63%, 50%) |
| CMYK | cmyk(32.3%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(28.23, 34.55, -38.72) |
| CIE-LCH | lch(28.23, 51.89, 311.74°) |
| OKLab | oklab(39.61% 0.0722 -0.1096) |
| OKLCH | oklch(39.61% 0.131 303.4) |
| XYZ | xyz(8.6842, 5.5438, 20.6871) |
| Luminance | 0.0554 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.89
Darkslateblue
#483D8B
ΔE00 6.27
Indigo
#4B0082
ΔE00 8.13
Blueberry
#464196
ΔE00 8.23
Royal Purple (survey)
#4B006E
ΔE00 8.35
Purple (survey)
#7E1E9C
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#562F7F #587F2F
analogous
#2F307F #562F7F #7E2F7F
triadic
#562F7F #7F562F #2F7F56
tetradic
#562F7F #7F2F30 #587F2F #2F7F7E
square
#562F7F #7F2F30 #587F2F #2F7F7E
split-complementary
#562F7F #7F7E2F #307F2F
monochromatic
#1A0E26 #381E52 #562F7F #7440AC #9363C5
Accessibility & contrast
On white
9.96
#562F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#562F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #562F7F
9.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##562F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##562F7F | 1.00 | 9.96 | 2.11 | 9.96 |
| #FFFFFF | 9.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#024282
Deuteranopia (green-blind)
#1A427D
Tritanopia (blue-blind)
#4E4052
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #562f7f; /* rgb */ color: rgb(86, 47, 127); /* oklch */ color: oklch(39.6% 0.131 303.4);
Tailwind
colors: {
custom: {
50: '#896aa5',
500: '#562f7f',
950: '#000000',
},
}SCSS
$custom: #562f7f; $custom-light: #896aa5; $custom-dark: #000000;
JSON
{
"hex": "#562f7f",
"rgb": {
"r": 86,
"g": 47,
"b": 127
},
"hsl": {
"h": 269.25,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.39612,
"c": 0.13129,
"h": 303.4
},
"luminance": 0.05544
}Semantic roles & 50–950 ramp
primary
#562F7F
secondary
#86AC5E
accent
#D65296
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F