Skip to content

#af877f

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

RGB
175, 135, 127
HSL
10°, 23%, 59%
CMYK
0, 23, 27, 31
Luminance
0.2797

Every format

HEX#af877f
RGBrgb(175, 135, 127)
HSLhsl(10, 23%, 59%)
CMYKcmyk(0%, 23%, 27%, 31%)
LABlab(59.9 14.1 10.2)
LCHlch(59.9 17.4 35.9)
OKLCHoklch(0.659 0.051 31.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af877f on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#af877f on black: 6.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green52.9%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta22.9%
Yellow27.4%
Key (black)31.4%

Color previews

#af877f text on a black background

contrast 6.59:1

Card sample

#af877f text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af877f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af877f in the Color Lab