Skip to content

#af2eaf

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

RGB
175, 46, 175
HSL
300°, 58%, 43%
CMYK
0, 74, 0, 31
Luminance
0.1416

Every format

HEX#af2eaf
RGBrgb(175, 46, 175)
HSLhsl(300, 58%, 43%)
CMYKcmyk(0%, 74%, 0%, 31%)
LABlab(44.5 65.6 -41.2)
LCHlch(44.5 77.4 327.8)
OKLCHoklch(0.550 0.216 328.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2eaf on white: 5.48:1
AA ✓ pass · AA-large · AAA
Aa
#af2eaf on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta73.7%
Yellow0.0%
Key (black)31.4%

Color previews

#af2eaf text on a black background

contrast 3.83:1

Card sample

#af2eaf text on a white background

contrast 5.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2eaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2eaf in the Color Lab