Skip to content

#af7ac2

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

RGB
175, 122, 194
HSL
284°, 37%, 62%
CMYK
10, 37, 0, 24
Luminance
0.2693

Every format

HEX#af7ac2
RGBrgb(175, 122, 194)
HSLhsl(284, 37%, 62%)
CMYKcmyk(10%, 37%, 0%, 24%)
LABlab(58.9 33.4 -29.6)
LCHlch(58.9 44.6 318.4)
OKLCHoklch(0.659 0.119 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ac2 on white: 3.29:1
AA ✗ fail · AA-large · AAA
Aa
#af7ac2 on black: 6.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green47.8%
Blue76.1%

CMYK percentages

Cyan9.8%
Magenta37.1%
Yellow0.0%
Key (black)23.9%

Color previews

#af7ac2 text on a black background

contrast 6.39:1

Card sample

#af7ac2 text on a white background

contrast 3.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ac2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ac2 in the Color Lab