Skip to content

#af2d4d

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

RGB
175, 45, 77
HSL
345°, 59%, 43%
CMYK
0, 74, 56, 31
Luminance
0.1153

Every format

HEX#af2d4d
RGBrgb(175, 45, 77)
HSLhsl(345, 59%, 43%)
CMYKcmyk(0%, 74%, 56%, 31%)
LABlab(40.5 53.8 12.9)
LCHlch(40.5 55.4 13.5)
OKLCHoklch(0.508 0.166 11.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2d4d on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#af2d4d on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta74.3%
Yellow56.0%
Key (black)31.4%

Color previews

#af2d4d text on a black background

contrast 3.31:1

Card sample

#af2d4d text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2d4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2d4d in the Color Lab