Skip to content

#af2f0c

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

RGB
175, 47, 12
HSL
13°, 87%, 37%
CMYK
0, 73, 93, 31
Luminance
0.1117

Every format

HEX#af2f0c
RGBrgb(175, 47, 12)
HSLhsl(13, 87%, 37%)
CMYKcmyk(0%, 73%, 93%, 31%)
LABlab(39.9 50.3 48.2)
LCHlch(39.9 69.7 43.8)
OKLCHoklch(0.501 0.170 34.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green18.4%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow93.1%
Key (black)31.4%

Color previews

#af2f0c text on a black background

contrast 3.23:1

Card sample

#af2f0c text on a white background

contrast 6.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f0c in the Color Lab