Skip to content

#af2fc1

a balanced, vivid magenta / pink · warm · closest name: purple

RGB
175, 47, 193
HSL
293°, 61%, 47%
CMYK
9, 76, 0, 24
Luminance
0.1500

Every format

HEX#af2fc1
RGBrgb(175, 47, 193)
HSLhsl(293, 61%, 47%)
CMYKcmyk(9%, 76%, 0%, 24%)
LABlab(45.6 68.3 -49.9)
LCHlch(45.6 84.6 323.8)
OKLCHoklch(0.561 0.229 322.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fc1 on white: 5.25:1
AA ✓ pass · AA-large · AAA
Aa
#af2fc1 on black: 4.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue75.7%

CMYK percentages

Cyan9.3%
Magenta75.6%
Yellow0.0%
Key (black)24.3%

Color previews

#af2fc1 text on a black background

contrast 4.00:1

Card sample

#af2fc1 text on a white background

contrast 5.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fc1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fc1 in the Color Lab