Skip to content

#af2fb0

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

RGB
175, 47, 176
HSL
300°, 58%, 44%
CMYK
1, 73, 0, 31
Luminance
0.1428

Every format

HEX#af2fb0
RGBrgb(175, 47, 176)
HSLhsl(300, 58%, 44%)
CMYKcmyk(1%, 73%, 0%, 31%)
LABlab(44.6 65.4 -41.5)
LCHlch(44.6 77.5 327.6)
OKLCHoklch(0.551 0.215 327.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fb0 on white: 5.45:1
AA ✓ pass · AA-large · AAA
Aa
#af2fb0 on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue69.0%

CMYK percentages

Cyan0.6%
Magenta73.3%
Yellow0.0%
Key (black)31.0%

Color previews

#af2fb0 text on a black background

contrast 3.86:1

Card sample

#af2fb0 text on a white background

contrast 5.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fb0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fb0 in the Color Lab