Skip to content

#af2c1d

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

RGB
175, 44, 29
HSL
6°, 72%, 40%
CMYK
0, 75, 83, 31
Luminance
0.1100

Every format

HEX#af2c1d
RGBrgb(175, 44, 29)
HSLhsl(6, 72%, 40%)
CMYKcmyk(0%, 75%, 83%, 31%)
LABlab(39.6 51.7 40.6)
LCHlch(39.6 65.8 38.1)
OKLCHoklch(0.499 0.170 30.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2c1d on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#af2c1d on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow83.4%
Key (black)31.4%

Color previews

#af2c1d text on a black background

contrast 3.20:1

Card sample

#af2c1d text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2c1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2c1d in the Color Lab