Skip to content

#af2d28

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

RGB
175, 45, 40
HSL
2°, 63%, 42%
CMYK
0, 74, 77, 31
Luminance
0.1114

Every format

HEX#af2d28
RGBrgb(175, 45, 40)
HSLhsl(2, 63%, 42%)
CMYKcmyk(0%, 74%, 77%, 31%)
LABlab(39.8 51.7 34.8)
LCHlch(39.8 62.4 33.9)
OKLCHoklch(0.501 0.168 27.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2d28 on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#af2d28 on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta74.3%
Yellow77.1%
Key (black)31.4%

Color previews

#af2d28 text on a black background

contrast 3.23:1

Card sample

#af2d28 text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2d28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2d28 in the Color Lab