Skip to content

#af7ac9

a balanced, soft violet · warm · closest name: plum

RGB
175, 122, 201
HSL
280°, 42%, 63%
CMYK
13, 39, 0, 21
Luminance
0.2725

Every format

HEX#af7ac9
RGBrgb(175, 122, 201)
HSLhsl(280, 42%, 63%)
CMYKcmyk(13%, 39%, 0%, 21%)
LABlab(59.2 34.8 -33.1)
LCHlch(59.2 48.0 316.5)
OKLCHoklch(0.662 0.127 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ac9 on white: 3.26:1
AA ✗ fail · AA-large · AAA
Aa
#af7ac9 on black: 6.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green47.8%
Blue78.8%

CMYK percentages

Cyan12.9%
Magenta39.3%
Yellow0.0%
Key (black)21.2%

Color previews

#af7ac9 text on a black background

contrast 6.45:1

Card sample

#af7ac9 text on a white background

contrast 3.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ac9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ac9 in the Color Lab