Skip to content

#af0c21

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

RGB
175, 12, 33
HSL
352°, 87%, 37%
CMYK
0, 93, 81, 31
Luminance
0.0949

Every format

HEX#af0c21
RGBrgb(175, 12, 33)
HSLhsl(352, 87%, 37%)
CMYKcmyk(0%, 93%, 81%, 31%)
LABlab(36.9 59.5 35.8)
LCHlch(36.9 69.5 31.0)
OKLCHoklch(0.479 0.188 24.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0c21 on white: 7.25:1
AA ✓ pass · AA-large · AAA
Aa
#af0c21 on black: 2.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green4.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta93.1%
Yellow81.1%
Key (black)31.4%

Color previews

#af0c21 text on a black background

contrast 2.90:1

Card sample

#af0c21 text on a white background

contrast 7.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0c21 in the Color Lab