Skip to content

#af2fce

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

RGB
175, 47, 206
HSL
288°, 63%, 50%
CMYK
15, 77, 0, 19
Luminance
0.1560

Every format

HEX#af2fce
RGBrgb(175, 47, 206)
HSLhsl(288, 63%, 50%)
CMYKcmyk(15%, 77%, 0%, 19%)
LABlab(46.5 70.6 -56.1)
LCHlch(46.5 90.2 321.5)
OKLCHoklch(0.570 0.239 318.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green18.4%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta77.2%
Yellow0.0%
Key (black)19.2%

Color previews

#af2fce text on a black background

contrast 4.12:1

Card sample

#af2fce text on a white background

contrast 5.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fce in the Color Lab