Skip to content

#af2bab

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

RGB
175, 43, 171
HSL
302°, 61%, 43%
CMYK
0, 75, 2, 31
Luminance
0.1378

Every format

HEX#af2bab
RGBrgb(175, 43, 171)
HSLhsl(302, 61%, 43%)
CMYKcmyk(0%, 75%, 2%, 31%)
LABlab(43.9 65.8 -39.7)
LCHlch(43.9 76.9 328.9)
OKLCHoklch(0.545 0.216 329.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2bab on white: 5.59:1
AA ✓ pass · AA-large · AAA
Aa
#af2bab on black: 3.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.9%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta75.4%
Yellow2.3%
Key (black)31.4%

Color previews

#af2bab text on a black background

contrast 3.76:1

Card sample

#af2bab text on a white background

contrast 5.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2bab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2bab in the Color Lab