Skip to content

#af2f16

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

RGB
175, 47, 22
HSL
10°, 78%, 39%
CMYK
0, 73, 87, 31
Luminance
0.1120

Every format

HEX#af2f16
RGBrgb(175, 47, 22)
HSLhsl(10, 78%, 39%)
CMYKcmyk(0%, 73%, 87%, 31%)
LABlab(39.9 50.5 44.3)
LCHlch(39.9 67.1 41.3)
OKLCHoklch(0.501 0.169 32.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2f16 on white: 6.48:1
AA ✓ pass · AA-large · AAA
Aa
#af2f16 on black: 3.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue8.6%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow87.4%
Key (black)31.4%

Color previews

#af2f16 text on a black background

contrast 3.24:1

Card sample

#af2f16 text on a white background

contrast 6.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f16

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f16 in the Color Lab