Skip to content

#af2049

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

RGB
175, 32, 73
HSL
343°, 69%, 41%
CMYK
0, 82, 58, 31
Luminance
0.1063

Every format

HEX#af2049
RGBrgb(175, 32, 73)
HSLhsl(343, 69%, 41%)
CMYKcmyk(0%, 82%, 58%, 31%)
LABlab(39.0 57.5 13.4)
LCHlch(39.0 59.1 13.1)
OKLCHoklch(0.496 0.177 10.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2049 on white: 6.72:1
AA ✓ pass · AA-large · AAA
Aa
#af2049 on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.5%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta81.7%
Yellow58.3%
Key (black)31.4%

Color previews

#af2049 text on a black background

contrast 3.13:1

Card sample

#af2049 text on a white background

contrast 6.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2049

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2049 in the Color Lab