Skip to content

#ad4af8

a balanced, electric violet · warm · closest name: magenta

RGB
173, 74, 248
HSL
274°, 93%, 63%
CMYK
30, 70, 0, 3
Luminance
0.2056

Every format

HEX#ad4af8
RGBrgb(173, 74, 248)
HSLhsl(274, 93%, 63%)
CMYKcmyk(30%, 70%, 0%, 3%)
LABlab(52.5 68.7 -70.2)
LCHlch(52.5 98.3 314.4)
OKLCHoklch(0.621 0.248 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad4af8 on white: 4.11:1
AA ✗ fail · AA-large · AAA
Aa
#ad4af8 on black: 5.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green29.0%
Blue97.3%

CMYK percentages

Cyan30.2%
Magenta70.2%
Yellow0.0%
Key (black)2.7%

Color previews

#ad4af8 text on a black background

contrast 5.11:1

Card sample

#ad4af8 text on a white background

contrast 4.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(173, 74, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 74, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad4af8;
background: linear-gradient(135deg, #ad4af8, #F84ACF);

Monochromatic scale

Palettes built from #ad4af8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad4af8 in the Color Lab