Skip to content

#af0f2f

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

RGB
175, 15, 47
HSL
348°, 84%, 37%
CMYK
0, 91, 73, 31
Luminance
0.0966

Every format

HEX#af0f2f
RGBrgb(175, 15, 47)
HSLhsl(348, 84%, 37%)
CMYKcmyk(0%, 91%, 73%, 31%)
LABlab(37.2 59.6 27.7)
LCHlch(37.2 65.7 24.9)
OKLCHoklch(0.482 0.186 19.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green5.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow73.1%
Key (black)31.4%

Color previews

#af0f2f text on a black background

contrast 2.93:1

Card sample

#af0f2f text on a white background

contrast 7.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0f2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0f2f in the Color Lab