Skip to content

#afad52

a balanced, soft yellow · warm · closest name: Dark Khaki

RGB
175, 173, 82
HSL
59°, 37%, 50%
CMYK
0, 1, 53, 31
Luminance
0.3961

At a glance

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

Hex
#afad52
Hue
59°
yellow
Saturation
37%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3961
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.92:1
Closest name
Dark Khaki
ΔE2000 4.2
Where it sits
Hue59° of 360°
Saturation37%
Lightness50%
Temperature
Warm ← → Cool24% 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#afad52
RGBrgb(175, 173, 82)
HSLhsl(59, 37%, 50%)
CMYKcmyk(0%, 1%, 53%, 31%)
LABlab(69.2 -11.8 46.4)
LCHlch(69.2 47.8 104.2)
OKLCHoklch(0.730 0.114 107.8)
Decimal11513170
Display P3color(display-p3 0.686 0.678 0.322)

Copy-ready code

/* CSS */
color: #afad52;
background-color: #afad52;
/* Tailwind (arbitrary) */
class="text-[#afad52] bg-[#afad52]"
/* SCSS */
$brand: #afad52;
/* SwiftUI */
Color(red: 0.686, green: 0.678, blue: 0.322)
/* Android */
Color.parseColor("#afad52")
/* Flutter */
Color(0xFFAFAD52)
/* Python / OpenCV (BGR) */
(82, 173, 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 #afad52 · 8.92:1
Use #000000AAA at every size.
Aa
White text · 2.35:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.92:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #afad52 as text scores 2.35:1 on white and 8.92:1 on black.

Accessibility — WCAG contrast

Aa
#afad52 on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#afad52 on black: 8.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A749
deuteranopia · #BBAB57
tritanopia · #BAA399

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afad52 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF9F5
#F4F4EB
#E9E8D3
#DCDBB2
#CAC88C
#B8B666
#afad52
#8C8A40
#706E34
#525128
#333319
Base = 600Lightest = 50 · #FAF9F5Darkest = 950 · #333319
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F4F4EB;
  --brand-200: #E9E8D3;
  --brand-300: #DCDBB2;
  --brand-400: #CAC88C;
  --brand-500: #B8B666;
  --brand-600: #afad52;
  --brand-700: #8C8A40;
  --brand-800: #706E34;
  --brand-900: #525128;
  --brand-950: #333319;
  --brand: #afad52;
  --brand-ink: #000000;
}

Colors that work with #afad52

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#FAFAF5
Tinted page background
Border#E5E5C7
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#4D69B4
Second voice, not a rival
Dark variant#575628
Hover, pressed, headers
Light variant#F7F7EE
Selected rows, tints
Dark surface#242414
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 #afad52

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#5254AF
Analogous left#AF7F52
Analogous right#83AF52
Split-complement 1#5283AF
Split-complement 2#7F52AF
Triadic 1#52AFAD
Triadic 2#AD52AF
Tetradic#52AF7F

RGB percentages

Red68.6%
Green67.8%
Blue32.2%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow53.1%
Key (black)31.4%

Color previews

#afad52 text on a black background

contrast 8.92:1

Card sample

#afad52 text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 173, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 173, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afad52;
background: linear-gradient(135deg, #afad52, #73AF52);

Monochromatic scale

Palettes built from #afad52

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.

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

#afad52, answered

What color is #afad52?

#afad52 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 4.2). It sits at 59° on the hue wheel with 37% saturation and 50% lightness, which reads as warm.

What is the RGB value of #afad52?

rgb(175, 173, 82) — 175 red, 173 green and 82 blue out of 255, or 68.6% / 67.8% / 32.2% by channel.

Is #afad52 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3961 and perceived brightness is 65%, so black text on it reaches 8.92:1.

Should I use black or white text on #afad52?

Black. It scores 8.92:1 against #afad52, versus 2.35:1 for white — AAA at any size.

What is the complementary color of #afad52?

#5254AF sits directly opposite on the wheel. Softer options are the split-complements #5283AF and #7F52AF, which give the same contrast with far less vibration.

What colors go well with #afad52?

For interface work: #FAFAF5 as the surface, #E5E5C7 for borders, #9B994B for secondary text, #4D69B4 as an accent and #575628 for hover and pressed states. For a palette, the analogous pair #AF7F52 and #83AF52 stays calm, while #5254AF is the loudest partner.

What is #afad52 in CMYK for printing?

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

Is #afad52 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF8B52; nudged cooler, #90B24F.

Work with #afad52 in the Color Lab