Skip to content

#afab9d

a light, muted yellow · warm · closest name: Dark Gray

RGB
175, 171, 157
HSL
47°, 10%, 65%
CMYK
0, 2, 10, 31
Luminance
0.4067

At a glance

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

Hex
#afab9d
Hue
47°
yellow
Saturation
10%
muted
Lightness
65%
light
Brightness
69%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4067
WCAG relative
Temperature
Warm
40/100 cool
Color family
Yellow
Tone
Muted
Best ink
Black
9.13:1
Closest name
Dark Gray
ΔE2000 6.7
Where it sits
Hue47° of 360°
Saturation10%
Lightness65%
Temperature
Warm ← → Cool40% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#afab9d
RGBrgb(175, 171, 157)
HSLhsl(47, 10%, 65%)
CMYKcmyk(0%, 2%, 10%, 31%)
LABlab(70.0 -1.1 7.7)
LCHlch(70.0 7.8 97.9)
OKLCHoklch(0.741 0.020 93.7)
Decimal11512733
Display P3color(display-p3 0.686 0.671 0.616)

Copy-ready code

/* CSS */
color: #afab9d;
background-color: #afab9d;
/* Tailwind (arbitrary) */
class="text-[#afab9d] bg-[#afab9d]"
/* SCSS */
$brand: #afab9d;
/* SwiftUI */
Color(red: 0.686, green: 0.671, blue: 0.616)
/* Android */
Color.parseColor("#afab9d")
/* Flutter */
Color(0xFFAFAB9D)
/* Python / OpenCV (BGR) */
(157, 171, 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 #afab9d · 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: #afab9d as text scores 2.30:1 on white and 9.13:1 on black.

Accessibility — WCAG contrast

Aa
#afab9d on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#afab9d on black: 9.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AEAA9C
deuteranopia · #AFAC9D
tritanopia · #B2A9A7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afab9d 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
#F1F0EE
#E1DFDB
#CDCAC1
#afab9d
#9A9583
#87816E
#706C5C
#5A5649
#434038
#2A2823
Base = 400Lightest = 50 · #F8F8F7Darkest = 950 · #2A2823
:root {
  --brand-50: #F8F8F7;
  --brand-100: #F1F0EE;
  --brand-200: #E1DFDB;
  --brand-300: #CDCAC1;
  --brand-400: #afab9d;
  --brand-500: #9A9583;
  --brand-600: #87816E;
  --brand-700: #706C5C;
  --brand-800: #5A5649;
  --brand-900: #434038;
  --brand-950: #2A2823;
  --brand: #afab9d;
  --brand-ink: #000000;
}

Colors that work with #afab9d

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#DAD8D2
Hairlines and dividers
Muted text#7E7967
Captions on the surface
Accent#576575
Second voice, not a rival
Dark variant#464339
Hover, pressed, headers
Light variant#F4F3F1
Selected rows, tints
Dark surface#1F1E19
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 #afab9d

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
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • White text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#9DA1AF
Analogous left#AFA29D
Analogous right#AAAF9D
Split-complement 1#9DAAAF
Split-complement 2#A29DAF
Triadic 1#9DAFAB
Triadic 2#AB9DAF
Tetradic#9DAFA2

RGB percentages

Red68.6%
Green67.1%
Blue61.6%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow10.3%
Key (black)31.4%

Color previews

#afab9d text on a black background

contrast 9.13:1

Card sample

#afab9d text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab9d

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.

#afab9d in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
BackgroundsBordersBody textDividers
Print note

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

#afab9d, answered

What color is #afab9d?

#afab9d is a light muted yellow, closest to Dark Gray (ΔE2000 6.7). It sits at 47° on the hue wheel with 10% saturation and 65% lightness, which reads as warm.

What is the RGB value of #afab9d?

rgb(175, 171, 157) — 175 red, 171 green and 157 blue out of 255, or 68.6% / 67.1% / 61.6% by channel.

Is #afab9d a light or a dark color?

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

Should I use black or white text on #afab9d?

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

What is the complementary color of #afab9d?

#9DA1AF sits directly opposite on the wheel. Softer options are the split-complements #9DAAAF and #A29DAF, which give the same contrast with far less vibration.

What colors go well with #afab9d?

For interface work: #F8F8F7 as the surface, #DAD8D2 for borders, #7E7967 for secondary text, #576575 as an accent and #464339 for hover and pressed states. For a palette, the analogous pair #AFA29D and #AAAF9D stays calm, while #9DA1AF is the loudest partner.

What is #afab9d in CMYK for printing?

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

Is #afab9d warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AFA59D; nudged cooler, #AEB19B.

Work with #afab9d in the Color Lab