Skip to content

#afb47d

a balanced, soft yellow · warm · closest name: Dark Khaki

RGB
175, 180, 125
HSL
66°, 27%, 60%
CMYK
3, 0, 31, 29
Luminance
0.4324

At a glance

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

Hex
#afb47d
Hue
66°
yellow
Saturation
27%
soft
Lightness
60%
balanced
Brightness
71%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4324
WCAG relative
Temperature
Warm
34/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.65:1
Closest name
Dark Khaki
ΔE2000 5.7
Where it sits
Hue66° of 360°
Saturation27%
Lightness60%
Temperature
Warm ← → Cool34% 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#afb47d
RGBrgb(175, 180, 125)
HSLhsl(66, 27%, 60%)
CMYKcmyk(3%, 0%, 31%, 29%)
LABlab(71.7 -10.7 27.5)
LCHlch(71.7 29.6 111.3)
OKLCHoklch(0.752 0.074 112.4)
Decimal11515005
Display P3color(display-p3 0.686 0.706 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb47d on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#afb47d on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BCAF79
deuteranopia · #BCB07F
tritanopia · #B6AEA6

Color scale — 50 to 950

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

#F9F9F6
#F2F3ED
#E4E6D6
#D3D6B8
#BDC194
#afb47d
#959B5A
#7C814B
#63673C
#4A4C2E
#2E301D
Base = 500Lightest = 50 · #F9F9F6Darkest = 950 · #2E301D
:root {
  --brand-50: #F9F9F6;
  --brand-100: #F2F3ED;
  --brand-200: #E4E6D6;
  --brand-300: #D3D6B8;
  --brand-400: #BDC194;
  --brand-500: #afb47d;
  --brand-600: #959B5A;
  --brand-700: #7C814B;
  --brand-800: #63673C;
  --brand-900: #4A4C2E;
  --brand-950: #2E301D;
  --brand: #afb47d;
  --brand-ink: #000000;
}

Colors that work with #afb47d

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#F9F9F5
Tinted page background
Border#DFE1CB
Hairlines and dividers
Muted text#8C9254
Captions on the surface
Accent#7983B8
Second voice, not a rival
Dark variant#4E512F
Hover, pressed, headers
Light variant#F5F6EF
Selected rows, tints
Dark surface#222415
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 #afb47d

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#827DB4
Analogous left#B49E7D
Analogous right#93B47D
Split-complement 1#7D93B4
Split-complement 2#9E7DB4
Triadic 1#7DAFB4
Triadic 2#B47DAF
Tetradic#7DB49E

RGB percentages

Red68.6%
Green70.6%
Blue49.0%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow30.6%
Key (black)29.4%

Color previews

#afb47d text on a black background

contrast 9.65:1

Card sample

#afb47d text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb47d

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.

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

#afb47d, answered

What color is #afb47d?

#afb47d is a balanced soft yellow, closest to Dark Khaki (ΔE2000 5.7). It sits at 66° on the hue wheel with 27% saturation and 60% lightness, which reads as warm.

What is the RGB value of #afb47d?

rgb(175, 180, 125) — 175 red, 180 green and 125 blue out of 255, or 68.6% / 70.6% / 49% by channel.

Is #afb47d a light or a dark color?

It is a mid-tone. Relative luminance is 0.4324 and perceived brightness is 68%, so black text on it reaches 9.65:1.

Should I use black or white text on #afb47d?

Black. It scores 9.65:1 against #afb47d, versus 2.18:1 for white — AAA at any size.

What is the complementary color of #afb47d?

#827DB4 sits directly opposite on the wheel. Softer options are the split-complements #7D93B4 and #9E7DB4, which give the same contrast with far less vibration.

What colors go well with #afb47d?

For interface work: #F9F9F5 as the surface, #DFE1CB for borders, #8C9254 for secondary text, #7983B8 as an accent and #4E512F for hover and pressed states. For a palette, the analogous pair #B49E7D and #93B47D stays calm, while #827DB4 is the loudest partner.

What is #afb47d in CMYK for printing?

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

Is #afb47d warm or cool?

Warm — it scores 34 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B4A57D; nudged cooler, #9BB67B.

Work with #afb47d in the Color Lab