#afb47d
a balanced, soft yellow · warm · closest name: Dark Khaki
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.
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 |
| RGB | rgb(175, 180, 125) |
| HSL | hsl(66, 27%, 60%) |
| CMYK | cmyk(3%, 0%, 31%, 29%) |
| LAB | lab(71.7 -10.7 27.5) |
| LCH | lch(71.7 29.6 111.3) |
| OKLCH | oklch(0.752 0.074 112.4) |
| Decimal | 11515005 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #afb47d
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #B49E7D | Neighbour, quieter | |
| Analogous right | #93B47D | Neighbour, quieter | |
| Split-complement 1 | #7D93B4 | Contrast without the clash | |
| Split-complement 2 | #9E7DB4 | Contrast without the clash | |
| Triadic 1 | #7DAFB4 | Even thirds — balanced and loud | |
| Triadic 2 | #B47DAF | Even thirds — balanced and loud | |
| Tetradic | #7DB49E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#afb47d text on a black background
contrast 9.65:1
#afb47d text on a white background
contrast 2.18:1
CSS3 live lab
The quick brown fox
color: #afb47d;
background-color: #afb47d;
Glowing headline
text-shadow: 2px 2px 8px #afb47d;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 180, 125, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 180, 125, 0.45);
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.
Closest color with a full write-up: Sage (#9caf88) — ΔE2000 6.5 away, with its history, psychology and brand usage.
#afb47d in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.