Skip to content

#af2ecf

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

RGB
175, 46, 207
HSL
288°, 64%, 50%
CMYK
16, 78, 0, 19
Luminance
0.1557

Every format

HEX#af2ecf
RGBrgb(175, 46, 207)
HSLhsl(288, 64%, 50%)
CMYKcmyk(16%, 78%, 0%, 19%)
LABlab(46.4 71.1 -56.8)
LCHlch(46.4 91.0 321.4)
OKLCHoklch(0.570 0.241 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2ecf on white: 5.10:1
AA ✓ pass · AA-large · AAA
Aa
#af2ecf on black: 4.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta77.8%
Yellow0.0%
Key (black)18.8%

Color previews

#af2ecf text on a black background

contrast 4.11:1

Card sample

#af2ecf text on a white background

contrast 5.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ecf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2ecf in the Color Lab