Skip to content

#562c64

a dark, soft violet · warm · closest name: midnightblue

RGB
86, 44, 100
HSL
285°, 39%, 28%
CMYK
14, 56, 0, 61
Luminance
0.0470

Every format

HEX#562c64
RGBrgb(86, 44, 100)
HSLhsl(285, 39%, 28%)
CMYKcmyk(14%, 56%, 0%, 61%)
LABlab(25.9 29.5 -25.3)
LCHlch(25.9 38.9 319.4)
OKLCHoklch(0.373 0.103 317.1)

Copy-ready code

/* CSS */
color: #562c64;
background-color: #562c64;
/* Tailwind (arbitrary) */
class="text-[#562c64] bg-[#562c64]"
/* SCSS */
$brand: #562c64;
/* SwiftUI */
Color(red: 0.337, green: 0.173, blue: 0.392)
/* Android */
Color.parseColor("#562c64")

Accessibility — WCAG contrast

Aa
#562c64 on white: 10.82:1
AA ✓ pass · AA-large · AAA
Aa
#562c64 on black: 1.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red33.7%
Green17.3%
Blue39.2%

CMYK percentages

Cyan14.0%
Magenta56.0%
Yellow0.0%
Key (black)60.8%

Color previews

#562c64 text on a black background

contrast 1.94:1

Card sample

#562c64 text on a white background

contrast 10.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #562c64;
Background color
Panel with #562c64 background
background-color: #562c64;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #562c64;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(86, 44, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 44, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562c64;
background: linear-gradient(135deg, #562c64, #642C4D);

Monochromatic scale

Palettes built from #562c64

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #562c64 in the Color Lab