Skip to content

#af2e2e

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

RGB
175, 46, 46
HSL
0°, 58%, 43%
CMYK
0, 74, 74, 31
Luminance
0.1127

Every format

HEX#af2e2e
RGBrgb(175, 46, 46)
HSLhsl(0, 58%, 43%)
CMYKcmyk(0%, 74%, 74%, 31%)
LABlab(40.0 51.6 31.5)
LCHlch(40.0 60.5 31.4)
OKLCHoklch(0.503 0.166 25.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2e2e on white: 6.46:1
AA ✓ pass · AA-large · AAA
Aa
#af2e2e on black: 3.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta73.7%
Yellow73.7%
Key (black)31.4%

Color previews

#af2e2e text on a black background

contrast 3.25:1

Card sample

#af2e2e text on a white background

contrast 6.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2e2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2e2e in the Color Lab