Skip to content

#af080c

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

RGB
175, 8, 12
HSL
359°, 91%, 36%
CMYK
0, 95, 93, 31
Luminance
0.0931

Every format

HEX#af080c
RGBrgb(175, 8, 12)
HSLhsl(359, 91%, 36%)
CMYKcmyk(0%, 95%, 93%, 31%)
LABlab(36.6 59.6 46.1)
LCHlch(36.6 75.3 37.7)
OKLCHoklch(0.476 0.191 28.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af080c on white: 7.34:1
AA ✓ pass · AA-large · AAA
Aa
#af080c on black: 2.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green3.1%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta95.4%
Yellow93.1%
Key (black)31.4%

Color previews

#af080c text on a black background

contrast 2.86:1

Card sample

#af080c text on a white background

contrast 7.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af080c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af080c in the Color Lab