Skip to content

#a862db

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

RGB
168, 98, 219
HSL
275°, 63%, 62%
CMYK
23, 55, 0, 14
Luminance
0.2217

Every format

HEX#a862db
RGBrgb(168, 98, 219)
HSLhsl(275, 63%, 62%)
CMYKcmyk(23%, 55%, 0%, 14%)
LABlab(54.2 49.8 -51.2)
LCHlch(54.2 71.4 314.2)
OKLCHoklch(0.626 0.184 308.7)

Copy-ready code

/* CSS */
color: #a862db;
background-color: #a862db;
/* Tailwind (arbitrary) */
class="text-[#a862db] bg-[#a862db]"
/* SCSS */
$brand: #a862db;
/* SwiftUI */
Color(red: 0.659, green: 0.384, blue: 0.859)
/* Android */
Color.parseColor("#a862db")

Accessibility — WCAG contrast

Aa
#a862db on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#a862db on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.9%
Green38.4%
Blue85.9%

CMYK percentages

Cyan23.3%
Magenta55.3%
Yellow0.0%
Key (black)14.1%

Color previews

#a862db text on a black background

contrast 5.43:1

Card sample

#a862db text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(168, 98, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 98, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a862db;
background: linear-gradient(135deg, #a862db, #DB62BD);

Monochromatic scale

Palettes built from #a862db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a862db in the Color Lab