Skip to content

#af7271

a balanced, soft red · warm · closest name: gray

RGB
175, 114, 113
HSL
1°, 28%, 57%
CMYK
0, 35, 35, 31
Luminance
0.2234

Every format

HEX#af7271
RGBrgb(175, 114, 113)
HSLhsl(1, 28%, 57%)
CMYKcmyk(0%, 35%, 35%, 31%)
LABlab(54.4 24.0 10.5)
LCHlch(54.4 26.2 23.7)
OKLCHoklch(0.616 0.078 20.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7271 on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#af7271 on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green44.7%
Blue44.3%

CMYK percentages

Cyan0.0%
Magenta34.9%
Yellow35.4%
Key (black)31.4%

Color previews

#af7271 text on a black background

contrast 5.47:1

Card sample

#af7271 text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7271

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7271 in the Color Lab