Skip to content

#af0213

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

RGB
175, 2, 19
HSL
354°, 98%, 35%
CMYK
0, 99, 89, 31
Luminance
0.0920

Every format

HEX#af0213
RGBrgb(175, 2, 19)
HSLhsl(354, 98%, 35%)
CMYKcmyk(0%, 99%, 89%, 31%)
LABlab(36.4 60.4 42.9)
LCHlch(36.4 74.1 35.4)
OKLCHoklch(0.475 0.193 26.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0213 on white: 7.39:1
AA ✓ pass · AA-large · AAA
Aa
#af0213 on black: 2.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green0.8%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta98.9%
Yellow89.1%
Key (black)31.4%

Color previews

#af0213 text on a black background

contrast 2.84:1

Card sample

#af0213 text on a white background

contrast 7.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0213

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0213 in the Color Lab