Skip to content

#562fad

a dark, vivid violet · warm · closest name: indigo

RGB
86, 47, 173
HSL
259°, 57%, 43%
CMYK
50, 73, 0, 32
Luminance
0.0703

Every format

HEX#562fad
RGBrgb(86, 47, 173)
HSLhsl(259, 57%, 43%)
CMYKcmyk(50%, 73%, 0%, 32%)
LABlab(31.9 47.2 -61.0)
LCHlch(31.9 77.1 307.8)
OKLCHoklch(0.434 0.187 290.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#562fad on white: 8.73:1
AA ✓ pass · AA-large · AAA
Aa
#562fad on black: 2.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red33.7%
Green18.4%
Blue67.8%

CMYK percentages

Cyan50.3%
Magenta72.8%
Yellow0.0%
Key (black)32.2%

Color previews

#562fad text on a black background

contrast 2.41:1

Card sample

#562fad text on a white background

contrast 8.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(86, 47, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 47, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562fad;
background: linear-gradient(135deg, #562fad, #AA2FAD);

Monochromatic scale

Palettes built from #562fad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #562fad in the Color Lab