Skip to content

#af2fcf

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

RGB
175, 47, 207
HSL
288°, 63%, 50%
CMYK
16, 77, 0, 19
Luminance
0.1565

Every format

HEX#af2fcf
RGBrgb(175, 47, 207)
HSLhsl(288, 63%, 50%)
CMYKcmyk(16%, 77%, 0%, 19%)
LABlab(46.5 70.8 -56.6)
LCHlch(46.5 90.6 321.4)
OKLCHoklch(0.571 0.240 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fcf on white: 5.08:1
AA ✓ pass · AA-large · AAA
Aa
#af2fcf on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue81.2%

CMYK percentages

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

Color previews

#af2fcf text on a black background

contrast 4.13:1

Card sample

#af2fcf text on a white background

contrast 5.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fcf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fcf in the Color Lab