Skip to content

#af7f87

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

RGB
175, 127, 135
HSL
350°, 23%, 59%
CMYK
0, 27, 23, 31
Luminance
0.2604

Every format

HEX#af7f87
RGBrgb(175, 127, 135)
HSLhsl(350, 23%, 59%)
CMYKcmyk(0%, 27%, 23%, 31%)
LABlab(58.1 19.8 3.0)
LCHlch(58.1 20.0 8.7)
OKLCHoklch(0.646 0.060 7.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7f87 on white: 3.38:1
AA ✗ fail · AA-large · AAA
Aa
#af7f87 on black: 6.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.8%
Blue52.9%

CMYK percentages

Cyan0.0%
Magenta27.4%
Yellow22.9%
Key (black)31.4%

Color previews

#af7f87 text on a black background

contrast 6.21:1

Card sample

#af7f87 text on a white background

contrast 3.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7f87

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7f87 in the Color Lab