Skip to content

#ae9b2f

a dark, vivid yellow · warm · closest name: Dark Khaki

RGB
174, 155, 47
HSL
51°, 58%, 43%
CMYK
0, 11, 73, 32
Luminance
0.3265

At a glance

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

Hex
#ae9b2f
Hue
51°
yellow
Saturation
58%
vivid
Lightness
43%
dark
Brightness
68%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3265
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.53:1
Closest name
Dark Khaki
ΔE2000 9.9
Where it sits
Hue51° of 360°
Saturation58%
Lightness43%
Temperature
Warm ← → Cool18% 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#ae9b2f
RGBrgb(174, 155, 47)
HSLhsl(51, 58%, 43%)
CMYKcmyk(0%, 11%, 73%, 32%)
LABlab(63.9 -5.0 56.0)
LCHlch(63.9 56.2 95.1)
OKLCHoklch(0.687 0.126 99.0)
Decimal11442991
Display P3color(display-p3 0.682 0.608 0.184)

Copy-ready code

/* CSS */
color: #ae9b2f;
background-color: #ae9b2f;
/* Tailwind (arbitrary) */
class="text-[#ae9b2f] bg-[#ae9b2f]"
/* SCSS */
$brand: #ae9b2f;
/* SwiftUI */
Color(red: 0.682, green: 0.608, blue: 0.184)
/* Android */
Color.parseColor("#ae9b2f")
/* Flutter */
Color(0xFFAE9B2F)
/* Python / OpenCV (BGR) */
(47, 155, 174)

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 #ae9b2f · 7.53:1
Use #000000AAA at every size.
Aa
White text · 2.79:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.53:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ae9b2f as text scores 2.79:1 on white and 7.53:1 on black.

Accessibility — WCAG contrast

Aa
#ae9b2f on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#ae9b2f on black: 7.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AA971D
deuteranopia · #AF9E36
tritanopia · #BC8F86

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ae9b2f 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.

#FBFAF4
#F7F5E9
#EFEACD
#E7DDA7
#DBCD7A
#CFBC4E
#C1AC34
#ae9b2f
#817223
#5E541D
#3A3412
Base = 700Lightest = 50 · #FBFAF4Darkest = 950 · #3A3412
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F5E9;
  --brand-200: #EFEACD;
  --brand-300: #E7DDA7;
  --brand-400: #DBCD7A;
  --brand-500: #CFBC4E;
  --brand-600: #C1AC34;
  --brand-700: #ae9b2f;
  --brand-800: #817223;
  --brand-900: #5E541D;
  --brand-950: #3A3412;
  --brand: #ae9b2f;
  --brand-ink: #000000;
}

Colors that work with #ae9b2f

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#FAF9F4
Tinted page background
Border#EDE6C0
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#2B61B2
Second voice, not a rival
Dark variant#64591B
Hover, pressed, headers
Light variant#FAF7EB
Selected rows, tints
Dark surface#242214
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 #ae9b2f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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#2F42AE
Analogous left#AE5B2F
Analogous right#81AE2F
Split-complement 1#2F81AE
Split-complement 2#5B2FAE
Triadic 1#2FAE9B
Triadic 2#9B2FAE
Tetradic#2FAE5B

RGB percentages

Red68.2%
Green60.8%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow73.0%
Key (black)31.8%

Color previews

#ae9b2f text on a black background

contrast 7.53:1

Card sample

#ae9b2f text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(174, 155, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(174, 155, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ae9b2f;
background: linear-gradient(135deg, #ae9b2f, #6CAE2F);

Monochromatic scale

Palettes built from #ae9b2f

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.

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

#ae9b2f, answered

What color is #ae9b2f?

#ae9b2f is a dark vivid yellow, closest to Dark Khaki (ΔE2000 9.9). It sits at 51° on the hue wheel with 58% saturation and 43% lightness, which reads as warm.

What is the RGB value of #ae9b2f?

rgb(174, 155, 47) — 174 red, 155 green and 47 blue out of 255, or 68.2% / 60.8% / 18.4% by channel.

Is #ae9b2f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3265 and perceived brightness is 60%, so black text on it reaches 7.53:1.

Should I use black or white text on #ae9b2f?

Black. It scores 7.53:1 against #ae9b2f, versus 2.79:1 for white — AAA at any size.

What is the complementary color of #ae9b2f?

#2F42AE sits directly opposite on the wheel. Softer options are the split-complements #2F81AE and #5B2FAE, which give the same contrast with far less vibration.

What colors go well with #ae9b2f?

For interface work: #FAF9F4 as the surface, #EDE6C0 for borders, #9B8F4B for secondary text, #2B61B2 as an accent and #64591B for hover and pressed states. For a palette, the analogous pair #AE5B2F and #81AE2F stays calm, while #2F42AE is the loudest partner.

What is #ae9b2f in CMYK for printing?

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

Is #ae9b2f warm or cool?

Warm — it scores 18 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AE782F; nudged cooler, #94B02D.

Work with #ae9b2f in the Color Lab