Skip to content

#af2acf

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

RGB
175, 42, 207
HSL
288°, 66%, 49%
CMYK
16, 80, 0, 19
Luminance
0.1527

Every format

HEX#af2acf
RGBrgb(175, 42, 207)
HSLhsl(288, 66%, 49%)
CMYKcmyk(16%, 80%, 0%, 19%)
LABlab(46.0 72.3 -57.4)
LCHlch(46.0 92.3 321.5)
OKLCHoklch(0.567 0.244 318.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2acf on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#af2acf on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.5%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta79.7%
Yellow0.0%
Key (black)18.8%

Color previews

#af2acf text on a black background

contrast 4.05:1

Card sample

#af2acf text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2acf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2acf in the Color Lab