Skip to content

#af9929

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

RGB
175, 153, 41
HSL
50°, 62%, 42%
CMYK
0, 13, 77, 31
Luminance
0.3206

At a glance

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

Hex
#af9929
Hue
50°
yellow
Saturation
62%
vivid
Lightness
42%
dark
Brightness
69%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3206
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.41:1
Closest name
Dark Goldenrod
ΔE2000 9.5
Where it sits
Hue50° of 360°
Saturation62%
Lightness42%
Temperature
Warm ← → Cool17% 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#af9929
RGBrgb(175, 153, 41)
HSLhsl(50, 62%, 42%)
CMYKcmyk(0%, 13%, 77%, 31%)
LABlab(63.4 -3.8 57.8)
LCHlch(63.4 57.9 93.7)
OKLCHoklch(0.683 0.128 97.5)
Decimal11508009
Display P3color(display-p3 0.686 0.600 0.161)

Copy-ready code

/* CSS */
color: #af9929;
background-color: #af9929;
/* Tailwind (arbitrary) */
class="text-[#af9929] bg-[#af9929]"
/* SCSS */
$brand: #af9929;
/* SwiftUI */
Color(red: 0.686, green: 0.600, blue: 0.161)
/* Android */
Color.parseColor("#af9929")
/* Flutter */
Color(0xFFAF9929)
/* Python / OpenCV (BGR) */
(41, 153, 175)

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

Accessibility — WCAG contrast

Aa
#af9929 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#af9929 on black: 7.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A99513
deuteranopia · #AF9D30
tritanopia · #BD8D84

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af9929 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
#F7F5E8
#F0EACC
#EADEA4
#DFCE77
#D4BD49
#C6AD2F
#af9929
#84731F
#60551A
#3C3510
Base = 700Lightest = 50 · #FBFAF4Darkest = 950 · #3C3510
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F5E8;
  --brand-200: #F0EACC;
  --brand-300: #EADEA4;
  --brand-400: #DFCE77;
  --brand-500: #D4BD49;
  --brand-600: #C6AD2F;
  --brand-700: #af9929;
  --brand-800: #84731F;
  --brand-900: #60551A;
  --brand-950: #3C3510;
  --brand: #af9929;
  --brand-ink: #000000;
}

Colors that work with #af9929

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#EDE5C0
Hairlines and dividers
Muted text#9B8E4B
Captions on the surface
Accent#2560B3
Second voice, not a rival
Dark variant#675A18
Hover, pressed, headers
Light variant#FAF8EA
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 #af9929

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#293FAF
Analogous left#AF5629
Analogous right#82AF29
Split-complement 1#2982AF
Split-complement 2#5629AF
Triadic 1#29AF99
Triadic 2#9929AF
Tetradic#29AF56

RGB percentages

Red68.6%
Green60.0%
Blue16.1%

CMYK percentages

Cyan0.0%
Magenta12.6%
Yellow76.6%
Key (black)31.4%

Color previews

#af9929 text on a black background

contrast 7.41:1

Card sample

#af9929 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 153, 41, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 153, 41, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9929;
background: linear-gradient(135deg, #af9929, #6CAF29);

Monochromatic scale

Palettes built from #af9929

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.

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

#af9929, answered

What color is #af9929?

#af9929 is a dark vivid yellow, closest to Dark Goldenrod (ΔE2000 9.5). It sits at 50° on the hue wheel with 62% saturation and 42% lightness, which reads as warm.

What is the RGB value of #af9929?

rgb(175, 153, 41) — 175 red, 153 green and 41 blue out of 255, or 68.6% / 60% / 16.1% by channel.

Is #af9929 a light or a dark color?

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

Should I use black or white text on #af9929?

Black. It scores 7.41:1 against #af9929, versus 2.83:1 for white — AAA at any size.

What is the complementary color of #af9929?

#293FAF sits directly opposite on the wheel. Softer options are the split-complements #2982AF and #5629AF, which give the same contrast with far less vibration.

What colors go well with #af9929?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8E4B for secondary text, #2560B3 as an accent and #675A18 for hover and pressed states. For a palette, the analogous pair #AF5629 and #82AF29 stays calm, while #293FAF is the loudest partner.

What is #af9929 in CMYK for printing?

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

Is #af9929 warm or cool?

Warm — it scores 17 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF7629; nudged cooler, #95B127.

Work with #af9929 in the Color Lab