Skip to content

#562fac

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

RGB
86, 47, 172
HSL
259°, 57%, 43%
CMYK
50, 73, 0, 33
Luminance
0.0699

Every format

HEX#562fac
RGBrgb(86, 47, 172)
HSLhsl(259, 57%, 43%)
CMYKcmyk(50%, 73%, 0%, 33%)
LABlab(31.8 46.9 -60.5)
LCHlch(31.8 76.6 307.8)
OKLCHoklch(0.433 0.186 290.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#562fac on white: 8.76:1
AA ✓ pass · AA-large · AAA
Aa
#562fac on black: 2.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red33.7%
Green18.4%
Blue67.5%

CMYK percentages

Cyan50.0%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#562fac text on a black background

contrast 2.40:1

Card sample

#562fac text on a white background

contrast 8.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #562fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #562fac in the Color Lab