Skip to content

#af877d

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

RGB
175, 135, 125
HSL
12°, 24%, 59%
CMYK
0, 23, 29, 31
Luminance
0.2792

Every format

HEX#af877d
RGBrgb(175, 135, 125)
HSLhsl(12, 24%, 59%)
CMYKcmyk(0%, 23%, 29%, 31%)
LABlab(59.8 13.8 11.3)
LCHlch(59.8 17.8 39.2)
OKLCHoklch(0.659 0.052 34.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af877d on white: 3.19:1
AA ✗ fail · AA-large · AAA
Aa
#af877d on black: 6.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green52.9%
Blue49.0%

CMYK percentages

Cyan0.0%
Magenta22.9%
Yellow28.6%
Key (black)31.4%

Color previews

#af877d text on a black background

contrast 6.58:1

Card sample

#af877d text on a white background

contrast 3.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af877d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af877d in the Color Lab