Skip to content

#af1b21

a dark, vivid red · warm · “firebrick”

RGB
175, 27, 33
HSL
358°, 73%, 40%
CMYK
0, 85, 81, 31
Luminance
0.1001

Every format

HEX#af1b21
RGBrgb(175, 27, 33)
HSLhsl(358, 73%, 40%)
CMYKcmyk(0%, 85%, 81%, 31%)
LABlab(37.9 56.8 36.8)
LCHlch(37.9 67.7 32.9)
OKLCHoklch(0.486 0.181 25.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1b21 on white: 7.00:1
AA ✓ pass · AA-large · AAA
Aa
#af1b21 on black: 3.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green10.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta84.6%
Yellow81.1%
Key (black)31.4%

Color previews

#af1b21 text on a black background

contrast 3.00:1

Card sample

#af1b21 text on a white background

contrast 7.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1b21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1b21 in the Color Lab