Skip to content

#afab8f

a balanced, soft yellow · warm · closest name: Tan

RGB
175, 171, 143
HSL
53°, 17%, 62%
CMYK
0, 2, 18, 31
Luminance
0.4022

At a glance

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

Hex
#afab8f
Hue
53°
yellow
Saturation
17%
soft
Lightness
62%
balanced
Brightness
69%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4022
WCAG relative
Temperature
Warm
35/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.04:1
Closest name
Tan
ΔE2000 11
Where it sits
Hue53° of 360°
Saturation17%
Lightness62%
Temperature
Warm ← → Cool35% 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#afab8f
RGBrgb(175, 171, 143)
HSLhsl(53, 17%, 62%)
CMYKcmyk(0%, 2%, 18%, 31%)
LABlab(69.6 -3.4 15.0)
LCHlch(69.6 15.3 102.6)
OKLCHoklch(0.737 0.039 100.6)
Decimal11512719
Display P3color(display-p3 0.686 0.671 0.561)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab8f on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#afab8f on black: 9.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B1A98D
deuteranopia · #B2AB90
tritanopia · #B4A7A3

Color scale — 50 to 950

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

#F8F8F6
#F2F1EE
#E3E2D9
#D0CEBE
#afab8f
#A29D7C
#8F8A66
#777355
#5F5C44
#474434
#2C2B20
Base = 400Lightest = 50 · #F8F8F6Darkest = 950 · #2C2B20
:root {
  --brand-50: #F8F8F6;
  --brand-100: #F2F1EE;
  --brand-200: #E3E2D9;
  --brand-300: #D0CEBE;
  --brand-400: #afab8f;
  --brand-500: #A29D7C;
  --brand-600: #8F8A66;
  --brand-700: #777355;
  --brand-800: #5F5C44;
  --brand-900: #474434;
  --brand-950: #2C2B20;
  --brand: #afab8f;
  --brand-ink: #000000;
}

Colors that work with #afab8f

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#F9F8F6
Tinted page background
Border#DDDBCF
Hairlines and dividers
Muted text#868160
Captions on the surface
Accent#51617B
Second voice, not a rival
Dark variant#4A4835
Hover, pressed, headers
Light variant#F4F4F0
Selected rows, tints
Dark surface#212017
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 #afab8f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#8F93AF
Analogous left#AF9B8F
Analogous right#A3AF8F
Split-complement 1#8FA3AF
Split-complement 2#9B8FAF
Triadic 1#8FAFAB
Triadic 2#AB8FAF
Tetradic#8FAF9B

RGB percentages

Red68.6%
Green67.1%
Blue56.1%

CMYK percentages

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

Color previews

#afab8f text on a black background

contrast 9.04:1

Card sample

#afab8f text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab8f

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.

#afab8f 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
ButtonsLinksFocus statesCharts
Print note

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

#afab8f, answered

What color is #afab8f?

#afab8f is a balanced soft yellow, closest to Tan (ΔE2000 11). It sits at 53° on the hue wheel with 17% saturation and 62% lightness, which reads as warm.

What is the RGB value of #afab8f?

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

Is #afab8f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4022 and perceived brightness is 66%, so black text on it reaches 9.04:1.

Should I use black or white text on #afab8f?

Black. It scores 9.04:1 against #afab8f, versus 2.32:1 for white — AAA at any size.

What is the complementary color of #afab8f?

#8F93AF sits directly opposite on the wheel. Softer options are the split-complements #8FA3AF and #9B8FAF, which give the same contrast with far less vibration.

What colors go well with #afab8f?

For interface work: #F9F8F6 as the surface, #DDDBCF for borders, #868160 for secondary text, #51617B as an accent and #4A4835 for hover and pressed states. For a palette, the analogous pair #AF9B8F and #A3AF8F stays calm, while #8F93AF is the loudest partner.

What is #afab8f in CMYK for printing?

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

Is #afab8f warm or cool?

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

Work with #afab8f in the Color Lab