#a79e21
a dark, vivid yellow · warm · closest name: Dark Khaki
At a glance
Every number on this page in one read: what #a79e21 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 | #a79e21 |
| RGB | rgb(167, 158, 33) |
| HSL | hsl(56, 67%, 39%) |
| CMYK | cmyk(0%, 5%, 80%, 35%) |
| LAB | lab(64.0 -10.3 60.7) |
| LCH | lch(64.0 61.5 99.7) |
| OKLCH | oklch(0.686 0.136 105.1) |
| Decimal | 10984993 |
| Display P3 | color(display-p3 0.655 0.620 0.129) |
Copy-ready code
/* CSS */
color: #a79e21;
background-color: #a79e21;
/* Tailwind (arbitrary) */
class="text-[#a79e21] bg-[#a79e21]"
/* SCSS */
$brand: #a79e21;
/* SwiftUI */
Color(red: 0.655, green: 0.620, blue: 0.129)
/* Android */
Color.parseColor("#a79e21")
/* Flutter */
Color(0xFFA79E21)
/* Python / OpenCV (BGR) */
(33, 158, 167)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. #a79e21 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: #FBFBF3;
--brand-100: #F8F7E8;
--brand-200: #F1EFCA;
--brand-300: #ECE7A1;
--brand-400: #E3DC72;
--brand-500: #DAD044;
--brand-600: #CCC128;
--brand-700: #a79e21;
--brand-800: #88811B;
--brand-900: #635E17;
--brand-950: #3E3B0F;
--brand: #a79e21;
--brand-ink: #000000;
}Colors that work with #a79e21
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 #a79e21
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠Text of any size on white — fails WCAG AA
- ⚠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 | #212AA7 | Directly opposite — maximum tension | |
| Analogous left | #A75B21 | Neighbour, quieter | |
| Analogous right | #6DA721 | Neighbour, quieter | |
| Split-complement 1 | #216DA7 | Contrast without the clash | |
| Split-complement 2 | #5B21A7 | Contrast without the clash | |
| Triadic 1 | #21A79E | Even thirds — balanced and loud | |
| Triadic 2 | #9E21A7 | Even thirds — balanced and loud | |
| Tetradic | #21A75B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#a79e21 text on a black background
contrast 7.56:1
#a79e21 text on a white background
contrast 2.78:1
CSS3 live lab
The quick brown fox
color: #a79e21;
background-color: #a79e21;
Glowing headline
text-shadow: 2px 2px 8px #a79e21;
Soft neon halo
text-shadow: 0 0 14px rgba(167, 158, 33, 0.45);
box-shadow: 0 12px 32px -8px rgba(167, 158, 33, 0.45);
border: 3px solid #a79e21; background: linear-gradient(135deg, #a79e21, #57A721);
Monochromatic scale
Palettes built from #a79e21
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: Olive (#808000) — ΔE2000 11.2 away, with its history, psychology and brand usage.
#a79e21 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.
#a79e21, answered
What color is #a79e21?
#a79e21 is a dark vivid yellow, closest to Dark Khaki (ΔE2000 10). It sits at 56° on the hue wheel with 67% saturation and 39% lightness, which reads as warm.
What is the RGB value of #a79e21?
rgb(167, 158, 33) — 167 red, 158 green and 33 blue out of 255, or 65.5% / 62% / 12.9% by channel.
Is #a79e21 a light or a dark color?
It is a mid-tone. Relative luminance is 0.3278 and perceived brightness is 60%, so black text on it reaches 7.56:1.
Should I use black or white text on #a79e21?
Black. It scores 7.56:1 against #a79e21, versus 2.78:1 for white — AAA at any size.
What is the complementary color of #a79e21?
#212AA7 sits directly opposite on the wheel. Softer options are the split-complements #216DA7 and #5B21A7, which give the same contrast with far less vibration.
What colors go well with #a79e21?
For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #1D4AAB as an accent and #6A6515 for hover and pressed states. For a palette, the analogous pair #A75B21 and #6DA721 stays calm, while #212AA7 is the loudest partner.
What is #a79e21 in CMYK for printing?
cmyk(0%, 5%, 80%, 35%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #a79e21 warm or cool?
Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A77321; nudged cooler, #80A91F.