Skip to content

#af2fb3

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

RGB
175, 47, 179
HSL
298°, 58%, 44%
CMYK
2, 74, 0, 30
Luminance
0.1440

Every format

HEX#af2fb3
RGBrgb(175, 47, 179)
HSLhsl(298, 58%, 44%)
CMYKcmyk(2%, 74%, 0%, 30%)
LABlab(44.8 65.9 -43.0)
LCHlch(44.8 78.7 326.9)
OKLCHoklch(0.553 0.218 326.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fb3 on white: 5.41:1
AA ✓ pass · AA-large · AAA
Aa
#af2fb3 on black: 3.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue70.2%

CMYK percentages

Cyan2.2%
Magenta73.7%
Yellow0.0%
Key (black)29.8%

Color previews

#af2fb3 text on a black background

contrast 3.88:1

Card sample

#af2fb3 text on a white background

contrast 5.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fb3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fb3 in the Color Lab