Skip to content

#af2fc0

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

RGB
175, 47, 192
HSL
293°, 61%, 47%
CMYK
9, 76, 0, 25
Luminance
0.1495

Every format

HEX#af2fc0
RGBrgb(175, 47, 192)
HSLhsl(293, 61%, 47%)
CMYKcmyk(9%, 76%, 0%, 25%)
LABlab(45.6 68.1 -49.4)
LCHlch(45.6 84.2 324.0)
OKLCHoklch(0.561 0.228 322.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fc0 on white: 5.26:1
AA ✓ pass · AA-large · AAA
Aa
#af2fc0 on black: 3.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue75.3%

CMYK percentages

Cyan8.9%
Magenta75.5%
Yellow0.0%
Key (black)24.7%

Color previews

#af2fc0 text on a black background

contrast 3.99:1

Card sample

#af2fc0 text on a white background

contrast 5.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fc0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fc0 in the Color Lab