Skip to content

#af140f

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

RGB
175, 20, 15
HSL
2°, 84%, 37%
CMYK
0, 89, 91, 31
Luminance
0.0965

Every format

HEX#af140f
RGBrgb(175, 20, 15)
HSLhsl(2, 84%, 37%)
CMYKcmyk(0%, 89%, 91%, 31%)
LABlab(37.2 57.9 45.3)
LCHlch(37.2 73.5 38.0)
OKLCHoklch(0.481 0.187 28.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af140f on white: 7.17:1
AA ✓ pass · AA-large · AAA
Aa
#af140f on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green7.8%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta88.6%
Yellow91.4%
Key (black)31.4%

Color previews

#af140f text on a black background

contrast 2.93:1

Card sample

#af140f text on a white background

contrast 7.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af140f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af140f in the Color Lab