Skip to content

#af2ccf

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

RGB
175, 44, 207
HSL
288°, 65%, 49%
CMYK
16, 79, 0, 19
Luminance
0.1542

Every format

HEX#af2ccf
RGBrgb(175, 44, 207)
HSLhsl(288, 65%, 49%)
CMYKcmyk(16%, 79%, 0%, 19%)
LABlab(46.2 71.7 -57.1)
LCHlch(46.2 91.7 321.5)
OKLCHoklch(0.568 0.243 318.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green17.3%
Blue81.2%

CMYK percentages

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

Color previews

#af2ccf text on a black background

contrast 4.08:1

Card sample

#af2ccf text on a white background

contrast 5.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2ccf in the Color Lab