Skip to content

#af707f

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

RGB
175, 112, 127
HSL
346°, 28%, 56%
CMYK
0, 36, 27, 31
Luminance
0.2223

Every format

HEX#af707f
RGBrgb(175, 112, 127)
HSLhsl(346, 28%, 56%)
CMYKcmyk(0%, 36%, 27%, 31%)
LABlab(54.3 27.0 2.2)
LCHlch(54.3 27.1 4.6)
OKLCHoklch(0.616 0.082 4.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af707f on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#af707f on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green43.9%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta36.0%
Yellow27.4%
Key (black)31.4%

Color previews

#af707f text on a black background

contrast 5.45:1

Card sample

#af707f text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af707f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af707f in the Color Lab