Skip to content

#afaaa7

a light, muted gray · neutral · closest name: Dark Gray

RGB
175, 170, 167
HSL
23°, 5%, 67%
CMYK
0, 3, 5, 31
Luminance
0.4065

At a glance

Every number on this page in one read: what #afaaa7 is made of, how bright it looks, and which way it leans.

Hex
#afaaa7
Hue
23°
gray
Saturation
5%
muted
Lightness
67%
light
Brightness
69%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4065
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Gray
Tone
Muted
Best ink
Black
9.13:1
Closest name
Dark Gray
ΔE2000 2.7
Where it sits
Hue23° of 360°
Saturation5%
Lightness67%
Temperature
Warm ← → Cool44% cool

Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.

Every format

HEX#afaaa7
RGBrgb(175, 170, 167)
HSLhsl(23, 5%, 67%)
CMYKcmyk(0%, 3%, 5%, 31%)
LABlab(69.9 1.2 2.2)
LCHlch(69.9 2.5 60.4)
OKLCHoklch(0.741 0.007 53.4)
Decimal11512487
Display P3color(display-p3 0.686 0.667 0.655)

Copy-ready code

/* CSS */
color: #afaaa7;
background-color: #afaaa7;
/* Tailwind (arbitrary) */
class="text-[#afaaa7] bg-[#afaaa7]"
/* SCSS */
$brand: #afaaa7;
/* SwiftUI */
Color(red: 0.686, green: 0.667, blue: 0.655)
/* Android */
Color.parseColor("#afaaa7")
/* Flutter */
Color(0xFFAFAAA7)
/* Python / OpenCV (BGR) */
(167, 170, 175)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #afaaa7 · 9.13:1
Use #000000AAA at every size.
Aa
White text · 2.30:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.13:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #afaaa7 as text scores 2.30:1 on white and 9.13:1 on black.

Accessibility — WCAG contrast

Aa
#afaaa7 on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#afaaa7 on black: 9.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ABAAA7
deuteranopia · #ADABA7
tritanopia · #B1A9A9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afaaa7 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F7F7
#F0F0EF
#DFDDDC
#CAC6C4
#afaaa7
#948D89
#807975
#6B6561
#56514E
#403D3A
#282625
Base = 400Lightest = 50 · #F8F7F7Darkest = 950 · #282625
:root {
  --brand-50: #F8F7F7;
  --brand-100: #F0F0EF;
  --brand-200: #DFDDDC;
  --brand-300: #CAC6C4;
  --brand-400: #afaaa7;
  --brand-500: #948D89;
  --brand-600: #807975;
  --brand-700: #6B6561;
  --brand-800: #56514E;
  --brand-900: #403D3A;
  --brand-950: #282625;
  --brand: #afaaa7;
  --brand-ink: #000000;
}

Colors that work with #afaaa7

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8F7F7
Tinted page background
Border#D8D6D4
Hairlines and dividers
Muted text#78716D
Captions on the surface
Accent#5E6D6E
Second voice, not a rival
Dark variant#433F3D
Hover, pressed, headers
Light variant#F3F2F2
Selected rows, tints
Dark surface#1D1C1B
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #afaaa7

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Borders, dividers and quiet backgrounds
  • Long-form reading surfaces
  • Card and section backgrounds
  • Neutral UI chrome and typography
Use with care
  • Text of any size on white — fails WCAG AA
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#A7ACAF
Analogous left#AFA7A8
Analogous right#AFAEA7
Split-complement 1#A7AFAE
Split-complement 2#A7A8AF
Triadic 1#A7AFAA
Triadic 2#AAA7AF
Tetradic#A8AFA7

RGB percentages

Red68.6%
Green66.7%
Blue65.5%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow4.6%
Key (black)31.4%

Color previews

#afaaa7 text on a black background

contrast 9.13:1

Card sample

#afaaa7 text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaaa7

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#afaaa7 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
EditorialArchitectureEnterpriseLuxury goods
Common UI roles
BackgroundsBordersBody textDividers
Print note

Converts to four-color process without much drama. Proof it anyway.

#afaaa7, answered

What color is #afaaa7?

#afaaa7 is a light muted gray, closest to Dark Gray (ΔE2000 2.7). It sits at 23° on the hue wheel with 5% saturation and 67% lightness, which reads as neutral.

What is the RGB value of #afaaa7?

rgb(175, 170, 167) — 175 red, 170 green and 167 blue out of 255, or 68.6% / 66.7% / 65.5% by channel.

Is #afaaa7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4065 and perceived brightness is 67%, so black text on it reaches 9.13:1.

Should I use black or white text on #afaaa7?

Black. It scores 9.13:1 against #afaaa7, versus 2.30:1 for white — AAA at any size.

What is the complementary color of #afaaa7?

#A7ACAF sits directly opposite on the wheel. Softer options are the split-complements #A7AFAE and #A7A8AF, which give the same contrast with far less vibration.

What colors go well with #afaaa7?

For interface work: #F8F7F7 as the surface, #D8D6D4 for borders, #78716D for secondary text, #5E6D6E as an accent and #433F3D for hover and pressed states. For a palette, the analogous pair #AFA7A8 and #AFAEA7 stays calm, while #A7ACAF is the loudest partner.

What is #afaaa7 in CMYK for printing?

cmyk(0%, 3%, 5%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #afaaa7 warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BBAFA5; nudged cooler, #9AA6B2.

Work with #afaaa7 in the Color Lab