Skip to content

#af2e4f

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

RGB
175, 46, 79
HSL
345°, 58%, 43%
CMYK
0, 74, 55, 31
Luminance
0.1163

Every format

HEX#af2e4f
RGBrgb(175, 46, 79)
HSLhsl(345, 58%, 43%)
CMYKcmyk(0%, 74%, 55%, 31%)
LABlab(40.6 53.6 11.9)
LCHlch(40.6 54.9 12.5)
OKLCHoklch(0.509 0.165 10.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2e4f on white: 6.31:1
AA ✓ pass · AA-large · AAA
Aa
#af2e4f on black: 3.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta73.7%
Yellow54.9%
Key (black)31.4%

Color previews

#af2e4f text on a black background

contrast 3.33:1

Card sample

#af2e4f text on a white background

contrast 6.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2e4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2e4f in the Color Lab