Skip to content

#af2f4d

a dark, vivid red · warm · closest name: firebrick

RGB
175, 47, 77
HSL
346°, 58%, 44%
CMYK
0, 73, 56, 31
Luminance
0.1168

Every format

HEX#af2f4d
RGBrgb(175, 47, 77)
HSLhsl(346, 58%, 44%)
CMYKcmyk(0%, 73%, 56%, 31%)
LABlab(40.7 53.1 13.3)
LCHlch(40.7 54.8 14.0)
OKLCHoklch(0.510 0.164 11.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2f4d on white: 6.29:1
AA ✓ pass · AA-large · AAA
Aa
#af2f4d on black: 3.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow56.0%
Key (black)31.4%

Color previews

#af2f4d text on a black background

contrast 3.34:1

Card sample

#af2f4d text on a white background

contrast 6.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f4d in the Color Lab