Skip to content

#562ace

a balanced, vivid violet · warm · closest name: navy

RGB
86, 42, 206
HSL
256°, 66%, 49%
CMYK
58, 80, 0, 19
Luminance
0.0809

Every format

HEX#562ace
RGBrgb(86, 42, 206)
HSLhsl(256, 66%, 49%)
CMYKcmyk(58%, 80%, 0%, 19%)
LABlab(34.2 58.7 -76.7)
LCHlch(34.2 96.5 307.4)
OKLCHoklch(0.459 0.229 285.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#562ace on white: 8.02:1
AA ✓ pass · AA-large · AAA
Aa
#562ace on black: 2.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red33.7%
Green16.5%
Blue80.8%

CMYK percentages

Cyan58.3%
Magenta79.6%
Yellow0.0%
Key (black)19.2%

Color previews

#562ace text on a black background

contrast 2.62:1

Card sample

#562ace text on a white background

contrast 8.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #562ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #562ace in the Color Lab