Skip to content

#af2d5d

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

RGB
175, 45, 93
HSL
338°, 59%, 43%
CMYK
0, 74, 47, 31
Luminance
0.1178

Every format

HEX#af2d5d
RGBrgb(175, 45, 93)
HSLhsl(338, 59%, 43%)
CMYKcmyk(0%, 74%, 47%, 31%)
LABlab(40.9 55.2 3.4)
LCHlch(40.9 55.3 3.5)
OKLCHoklch(0.512 0.169 3.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2d5d on white: 6.26:1
AA ✓ pass · AA-large · AAA
Aa
#af2d5d on black: 3.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta74.3%
Yellow46.9%
Key (black)31.4%

Color previews

#af2d5d text on a black background

contrast 3.36:1

Card sample

#af2d5d text on a white background

contrast 6.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2d5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2d5d in the Color Lab