Skip to content

#afafaf

a light, muted gray · warm · closest name: silver

RGB
175, 175, 175
HSL
0°, 0%, 69%
CMYK
0, 0, 0, 31
Luminance
0.4287

Every format

HEX#afafaf
RGBrgb(175, 175, 175)
HSLhsl(0, 0%, 69%)
CMYKcmyk(0%, 0%, 0%, 31%)
LABlab(71.5 0.0 0.0)
LCHlch(71.5 0.0 180.0)
OKLCHoklch(0.754 0.000 89.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afafaf on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#afafaf on black: 9.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green68.6%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow0.0%
Key (black)31.4%

Color previews

#afafaf text on a black background

contrast 9.57:1

Card sample

#afafaf text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afafaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afafaf in the Color Lab