Skip to content

#af2f27

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

RGB
175, 47, 39
HSL
4°, 64%, 42%
CMYK
0, 73, 78, 31
Luminance
0.1129

Every format

HEX#af2f27
RGBrgb(175, 47, 39)
HSLhsl(4, 64%, 42%)
CMYKcmyk(0%, 73%, 78%, 31%)
LABlab(40.1 51.0 35.6)
LCHlch(40.1 62.2 35.0)
OKLCHoklch(0.503 0.166 28.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2f27 on white: 6.44:1
AA ✓ pass · AA-large · AAA
Aa
#af2f27 on black: 3.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue15.3%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow77.7%
Key (black)31.4%

Color previews

#af2f27 text on a black background

contrast 3.26:1

Card sample

#af2f27 text on a white background

contrast 6.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f27

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f27 in the Color Lab