Skip to content

#af4040

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

RGB
175, 64, 64
HSL
0°, 46%, 47%
CMYK
0, 63, 63, 31
Luminance
0.1315

Every format

HEX#af4040
RGBrgb(175, 64, 64)
HSLhsl(0, 46%, 47%)
CMYKcmyk(0%, 63%, 63%, 31%)
LABlab(43.0 45.3 24.3)
LCHlch(43.0 51.4 28.2)
OKLCHoklch(0.526 0.145 23.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4040 on white: 5.78:1
AA ✓ pass · AA-large · AAA
Aa
#af4040 on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green25.1%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta63.4%
Yellow63.4%
Key (black)31.4%

Color previews

#af4040 text on a black background

contrast 3.63:1

Card sample

#af4040 text on a white background

contrast 5.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4040 in the Color Lab