Skip to content

#af2dce

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

RGB
175, 45, 206
HSL
288°, 64%, 49%
CMYK
15, 78, 0, 19
Luminance
0.1545

Every format

HEX#af2dce
RGBrgb(175, 45, 206)
HSLhsl(288, 64%, 49%)
CMYKcmyk(15%, 78%, 0%, 19%)
LABlab(46.2 71.2 -56.5)
LCHlch(46.2 90.9 321.6)
OKLCHoklch(0.568 0.241 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2dce on white: 5.14:1
AA ✓ pass · AA-large · AAA
Aa
#af2dce on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta78.2%
Yellow0.0%
Key (black)19.2%

Color previews

#af2dce text on a black background

contrast 4.09:1

Card sample

#af2dce text on a white background

contrast 5.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 45, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 45, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2dce;
background: linear-gradient(135deg, #af2dce, #CE2D82);

Monochromatic scale

Palettes built from #af2dce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dce in the Color Lab