#afb673
a balanced, soft yellow · warm · closest name: Dark Khaki
At a glance
Every number on this page in one read: what #afb673 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 | #afb673 |
| RGB | rgb(175, 182, 115) |
| HSL | hsl(66, 32%, 58%) |
| CMYK | cmyk(4%, 0%, 37%, 29%) |
| LAB | lab(72.1 -13.0 33.3) |
| LCH | lch(72.1 35.8 111.3) |
| OKLCH | oklch(0.755 0.089 113.4) |
| Decimal | 11515507 |
| Display P3 | color(display-p3 0.686 0.714 0.451) |
Copy-ready code
/* CSS */
color: #afb673;
background-color: #afb673;
/* Tailwind (arbitrary) */
class="text-[#afb673] bg-[#afb673]"
/* SCSS */
$brand: #afb673;
/* SwiftUI */
Color(red: 0.686, green: 0.714, blue: 0.451)
/* Android */
Color.parseColor("#afb673")
/* Flutter */
Color(0xFFAFB673)
/* Python / OpenCV (BGR) */
(115, 182, 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. #afb673 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: #F9F9F5;
--brand-100: #F3F3EC;
--brand-200: #E5E7D5;
--brand-300: #D5D9B5;
--brand-400: #C0C590;
--brand-500: #afb673;
--brand-600: #99A154;
--brand-700: #7F8646;
--brand-800: #666B38;
--brand-900: #4B4F2B;
--brand-950: #2F311B;
--brand: #afb673;
--brand-ink: #000000;
}Colors that work with #afb673
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 #afb673
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 | #7A73B6 | Directly opposite — maximum tension | |
| Analogous left | #B69B73 | Neighbour, quieter | |
| Analogous right | #8DB673 | Neighbour, quieter | |
| Split-complement 1 | #738DB6 | Contrast without the clash | |
| Split-complement 2 | #9B73B6 | Contrast without the clash | |
| Triadic 1 | #73AFB6 | Even thirds — balanced and loud | |
| Triadic 2 | #B673AF | Even thirds — balanced and loud | |
| Tetradic | #73B69B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#afb673 text on a black background
contrast 9.76:1
#afb673 text on a white background
contrast 2.15:1
CSS3 live lab
The quick brown fox
color: #afb673;
background-color: #afb673;
Glowing headline
text-shadow: 2px 2px 8px #afb673;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 182, 115, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 182, 115, 0.45);
border: 3px solid #afb673; background: linear-gradient(135deg, #afb673, #82B673);
Monochromatic scale
Palettes built from #afb673
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: Sand (#c2b280) — ΔE2000 8.1 away, with its history, psychology and brand usage.
#afb673 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.
#afb673, answered
What color is #afb673?
#afb673 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 4.4). It sits at 66° on the hue wheel with 32% saturation and 58% lightness, which reads as warm.
What is the RGB value of #afb673?
rgb(175, 182, 115) — 175 red, 182 green and 115 blue out of 255, or 68.6% / 71.4% / 45.1% by channel.
Is #afb673 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4381 and perceived brightness is 68%, so black text on it reaches 9.76:1.
Should I use black or white text on #afb673?
Black. It scores 9.76:1 against #afb673, versus 2.15:1 for white — AAA at any size.
What is the complementary color of #afb673?
#7A73B6 sits directly opposite on the wheel. Softer options are the split-complements #738DB6 and #9B73B6, which give the same contrast with far less vibration.
What colors go well with #afb673?
For interface work: #F9FAF5 as the surface, #E0E3C9 for borders, #8F974F for secondary text, #6F7ABA as an accent and #50542C for hover and pressed states. For a palette, the analogous pair #B69B73 and #8DB673 stays calm, while #7A73B6 is the loudest partner.
What is #afb673 in CMYK for printing?
cmyk(4%, 0%, 37%, 29%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #afb673 warm or cool?
Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B6A473; nudged cooler, #96B871.