Skip to content

#afb2a7

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

RGB
175, 178, 167
HSL
76°, 7%, 68%
CMYK
2, 0, 6, 30
Luminance
0.4374

At a glance

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

Hex
#afb2a7
Hue
76°
gray
Saturation
7%
muted
Lightness
68%
light
Brightness
70%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4374
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Gray
Tone
Muted
Best ink
Black
9.75:1
Closest name
Dark Gray
ΔE2000 6.4
Where it sits
Hue76° of 360°
Saturation7%
Lightness68%
Temperature
Warm ← → Cool48% 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#afb2a7
RGBrgb(175, 178, 167)
HSLhsl(76, 7%, 68%)
CMYKcmyk(2%, 0%, 6%, 30%)
LABlab(72.1 -3.1 5.3)
LCHlch(72.1 6.1 120.4)
OKLCHoklch(0.758 0.016 119.2)
Decimal11514535
Display P3color(display-p3 0.686 0.698 0.655)

Copy-ready code

/* CSS */
color: #afb2a7;
background-color: #afb2a7;
/* Tailwind (arbitrary) */
class="text-[#afb2a7] bg-[#afb2a7]"
/* SCSS */
$brand: #afb2a7;
/* SwiftUI */
Color(red: 0.686, green: 0.698, blue: 0.655)
/* Android */
Color.parseColor("#afb2a7")
/* Flutter */
Color(0xFFAFB2A7)
/* Python / OpenCV (BGR) */
(167, 178, 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 #afb2a7 · 9.75:1
Use #000000AAA at every size.
Aa
White text · 2.15:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.75:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #afb2a7 as text scores 2.15:1 on white and 9.75:1 on black.

Accessibility — WCAG contrast

Aa
#afb2a7 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#afb2a7 on black: 9.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B4B1A6
deuteranopia · #B3B1A7
tritanopia · #B0B1AF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afb2a7 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.

#F8F8F7
#F0F0EF
#DFE0DC
#C9CBC3
#afb2a7
#929687
#7E8372
#696D5F
#54574C
#3F4139
#272924
Base = 400Lightest = 50 · #F8F8F7Darkest = 950 · #272924
:root {
  --brand-50: #F8F8F7;
  --brand-100: #F0F0EF;
  --brand-200: #DFE0DC;
  --brand-300: #C9CBC3;
  --brand-400: #afb2a7;
  --brand-500: #929687;
  --brand-600: #7E8372;
  --brand-700: #696D5F;
  --brand-800: #54574C;
  --brand-900: #3F4139;
  --brand-950: #272924;
  --brand: #afb2a7;
  --brand-ink: #000000;
}

Colors that work with #afb2a7

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#F8F8F7
Tinted page background
Border#D7D9D3
Hairlines and dividers
Muted text#767A6B
Captions on the surface
Accent#5B5B71
Second voice, not a rival
Dark variant#42443B
Hover, pressed, headers
Light variant#F3F3F1
Selected rows, tints
Dark surface#1D1E1A
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 #afb2a7

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#AAA7B2
Analogous left#B2AFA7
Analogous right#A9B2A7
Split-complement 1#A7A9B2
Split-complement 2#AFA7B2
Triadic 1#A7AFB2
Triadic 2#B2A7AF
Tetradic#A7B2AF

RGB percentages

Red68.6%
Green69.8%
Blue65.5%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow6.2%
Key (black)30.2%

Color previews

#afb2a7 text on a black background

contrast 9.75:1

Card sample

#afb2a7 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb2a7

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.

#afb2a7 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.

#afb2a7, answered

What color is #afb2a7?

#afb2a7 is a light muted gray, closest to Dark Gray (ΔE2000 6.4). It sits at 76° on the hue wheel with 7% saturation and 68% lightness, which reads as neutral.

What is the RGB value of #afb2a7?

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

Is #afb2a7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4374 and perceived brightness is 69%, so black text on it reaches 9.75:1.

Should I use black or white text on #afb2a7?

Black. It scores 9.75:1 against #afb2a7, versus 2.15:1 for white — AAA at any size.

What is the complementary color of #afb2a7?

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

What colors go well with #afb2a7?

For interface work: #F8F8F7 as the surface, #D7D9D3 for borders, #767A6B for secondary text, #5B5B71 as an accent and #42443B for hover and pressed states. For a palette, the analogous pair #B2AFA7 and #A9B2A7 stays calm, while #AAA7B2 is the loudest partner.

What is #afb2a7 in CMYK for printing?

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

Is #afb2a7 warm or cool?

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

Work with #afb2a7 in the Color Lab