Skip to content

#af2abb

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

RGB
175, 42, 187
HSL
295°, 63%, 45%
CMYK
6, 78, 0, 27
Luminance
0.1436

Every format

HEX#af2abb
RGBrgb(175, 42, 187)
HSLhsl(295, 63%, 45%)
CMYKcmyk(6%, 78%, 0%, 27%)
LABlab(44.7 68.8 -47.8)
LCHlch(44.7 83.8 325.2)
OKLCHoklch(0.554 0.229 324.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2abb on white: 5.42:1
AA ✓ pass · AA-large · AAA
Aa
#af2abb on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.5%
Blue73.3%

CMYK percentages

Cyan6.4%
Magenta77.5%
Yellow0.0%
Key (black)26.7%

Color previews

#af2abb text on a black background

contrast 3.87:1

Card sample

#af2abb text on a white background

contrast 5.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2abb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2abb in the Color Lab