#ab8f2c
a dark, vivid yellow · warm · closest name: Dark Goldenrod
At a glance
Every number on this page in one read: what #ab8f2c 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 | #ab8f2c |
| RGB | rgb(171, 143, 44) |
| HSL | hsl(47, 59%, 42%) |
| CMYK | cmyk(0%, 16%, 74%, 33%) |
| LAB | lab(60.3 -0.0 53.6) |
| LCH | lch(60.3 53.6 90.0) |
| OKLCH | oklch(0.658 0.119 92.6) |
| Decimal | 11243308 |
| Display P3 | color(display-p3 0.671 0.561 0.173) |
Copy-ready code
/* CSS */
color: #ab8f2c;
background-color: #ab8f2c;
/* Tailwind (arbitrary) */
class="text-[#ab8f2c] bg-[#ab8f2c]"
/* SCSS */
$brand: #ab8f2c;
/* SwiftUI */
Color(red: 0.671, green: 0.561, blue: 0.173)
/* Android */
Color.parseColor("#ab8f2c")
/* Flutter */
Color(0xFFAB8F2C)
/* Python / OpenCV (BGR) */
(44, 143, 171)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. #ab8f2c is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FBF9F4;
--brand-100: #F7F4E9;
--brand-200: #EFE8CD;
--brand-300: #E8D9A6;
--brand-400: #DDC779;
--brand-500: #D1B44C;
--brand-600: #C3A332;
--brand-700: #ab8f2c;
--brand-800: #826D21;
--brand-900: #5E501C;
--brand-950: #3B3211;
--brand: #ab8f2c;
--brand-ink: #000000;
}Colors that work with #ab8f2c
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 #ab8f2c
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black 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 | #2C48AB | Directly opposite — maximum tension | |
| Analogous left | #AB502C | Neighbour, quieter | |
| Analogous right | #88AB2C | Neighbour, quieter | |
| Split-complement 1 | #2C88AB | Contrast without the clash | |
| Split-complement 2 | #502CAB | Contrast without the clash | |
| Triadic 1 | #2CAB8F | Even thirds — balanced and loud | |
| Triadic 2 | #8F2CAB | Even thirds — balanced and loud | |
| Tetradic | #2CAB50 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ab8f2c text on a black background
contrast 6.70:1
#ab8f2c text on a white background
contrast 3.14:1
CSS3 live lab
The quick brown fox
color: #ab8f2c;
background-color: #ab8f2c;
Glowing headline
text-shadow: 2px 2px 8px #ab8f2c;
Soft neon halo
text-shadow: 0 0 14px rgba(171, 143, 44, 0.45);
box-shadow: 0 12px 32px -8px rgba(171, 143, 44, 0.45);
border: 3px solid #ab8f2c; background: linear-gradient(135deg, #ab8f2c, #72AB2C);
Monochromatic scale
Palettes built from #ab8f2c
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: Goldenrod (#daa520) — ΔE2000 10.7 away, with its history, psychology and brand usage.
#ab8f2c 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.
#ab8f2c, answered
What color is #ab8f2c?
#ab8f2c is a dark vivid yellow, closest to Dark Goldenrod (ΔE2000 6.6). It sits at 47° on the hue wheel with 59% saturation and 42% lightness, which reads as warm.
What is the RGB value of #ab8f2c?
rgb(171, 143, 44) — 171 red, 143 green and 44 blue out of 255, or 67.1% / 56.1% / 17.3% by channel.
Is #ab8f2c a light or a dark color?
It is a mid-tone. Relative luminance is 0.2848 and perceived brightness is 57%, so black text on it reaches 6.70:1.
Should I use black or white text on #ab8f2c?
Black. It scores 6.70:1 against #ab8f2c, versus 3.14:1 for white — AA at any size.
What is the complementary color of #ab8f2c?
#2C48AB sits directly opposite on the wheel. Softer options are the split-complements #2C88AB and #502CAB, which give the same contrast with far less vibration.
What colors go well with #ab8f2c?
For interface work: #FAF9F4 as the surface, #EDE3C0 for borders, #9B894B for secondary text, #2868B0 as an accent and #65551A for hover and pressed states. For a palette, the analogous pair #AB502C and #88AB2C stays calm, while #2C48AB is the loudest partner.
What is #ab8f2c in CMYK for printing?
cmyk(0%, 16%, 74%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ab8f2c warm or cool?
Warm — it scores 14 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB722C; nudged cooler, #9AAD2A.