Skip to content

#afb2b2

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

RGB
175, 178, 178
HSL
180°, 2%, 69%
CMYK
2, 0, 0, 30
Luminance
0.4417

At a glance

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

Hex
#afb2b2
Hue
180°
gray
Saturation
2%
muted
Lightness
69%
light
Brightness
70%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4417
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Gray
Tone
Muted
Best ink
Black
9.83:1
Closest name
Dark Gray
ΔE2000 2.8
Where it sits
Hue180° of 360°
Saturation2%
Lightness69%
Temperature
Warm ← → Cool52% 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#afb2b2
RGBrgb(175, 178, 178)
HSLhsl(180, 2%, 69%)
CMYKcmyk(2%, 0%, 0%, 30%)
LABlab(72.3 -1.1 -0.4)
LCHlch(72.3 1.1 199.4)
OKLCHoklch(0.761 0.003 197.1)
Decimal11514546
Display P3color(display-p3 0.686 0.698 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb2b2 on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#afb2b2 on black: 9.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B2B2B2
deuteranopia · #B1B1B2
tritanopia · #AEB2B2

Color scale — 50 to 950

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

#F7F7F7
#EFF0F0
#DDDEDE
#C6C8C8
#afb2b2
#8D9191
#787D7D
#646868
#505353
#3C3E3E
#262727
Base = 400Lightest = 50 · #F7F7F7Darkest = 950 · #262727
:root {
  --brand-50: #F7F7F7;
  --brand-100: #EFF0F0;
  --brand-200: #DDDEDE;
  --brand-300: #C6C8C8;
  --brand-400: #afb2b2;
  --brand-500: #8D9191;
  --brand-600: #787D7D;
  --brand-700: #646868;
  --brand-800: #505353;
  --brand-900: #3C3E3E;
  --brand-950: #262727;
  --brand: #afb2b2;
  --brand-ink: #000000;
}

Colors that work with #afb2b2

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#F7F7F7
Tinted page background
Border#D5D7D7
Hairlines and dividers
Muted text#717575
Captions on the surface
Accent#6C6063
Second voice, not a rival
Dark variant#3F4141
Hover, pressed, headers
Light variant#F2F2F2
Selected rows, tints
Dark surface#1C1D1D
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 #afb2b2

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#B2AFAF
Analogous left#AFB2B0
Analogous right#AFB0B2
Split-complement 1#B2AFB0
Split-complement 2#B2B0AF
Triadic 1#B2AFB2
Triadic 2#B2B2AF
Tetradic#B0AFB2

RGB percentages

Red68.6%
Green69.8%
Blue69.8%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow0.0%
Key (black)30.2%

Color previews

#afb2b2 text on a black background

contrast 9.83:1

Card sample

#afb2b2 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb2b2

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.

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

#afb2b2, answered

What color is #afb2b2?

#afb2b2 is a light muted gray, closest to Dark Gray (ΔE2000 2.8). It sits at 180° on the hue wheel with 2% saturation and 69% lightness, which reads as neutral.

What is the RGB value of #afb2b2?

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

Is #afb2b2 a light or a dark color?

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

Should I use black or white text on #afb2b2?

Black. It scores 9.83:1 against #afb2b2, versus 2.14:1 for white — AAA at any size.

What is the complementary color of #afb2b2?

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

What colors go well with #afb2b2?

For interface work: #F7F7F7 as the surface, #D5D7D7 for borders, #717575 for secondary text, #6C6063 as an accent and #3F4141 for hover and pressed states. For a palette, the analogous pair #AFB2B0 and #AFB0B2 stays calm, while #B2AFAF is the loudest partner.

What is #afb2b2 in CMYK for printing?

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

Is #afb2b2 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C0B4AB; nudged cooler, #A0ABB7.

Work with #afb2b2 in the Color Lab