Skip to content

#afac80

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

RGB
175, 172, 128
HSL
56°, 23%, 59%
CMYK
0, 2, 27, 31
Luminance
0.4018

At a glance

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

Hex
#afac80
Hue
56°
yellow
Saturation
23%
soft
Lightness
59%
balanced
Brightness
69%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4018
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.04:1
Closest name
Dark Khaki
ΔE2000 7.3
Where it sits
Hue56° of 360°
Saturation23%
Lightness59%
Temperature
Warm ← → Cool32% 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#afac80
RGBrgb(175, 172, 128)
HSLhsl(56, 23%, 59%)
CMYKcmyk(0%, 2%, 27%, 31%)
LABlab(69.6 -6.1 23.1)
LCHlch(69.6 23.9 104.8)
OKLCHoklch(0.736 0.060 104.5)
Decimal11512960
Display P3color(display-p3 0.686 0.675 0.502)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac80 on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#afac80 on black: 9.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B4A97D
deuteranopia · #B5AB82
tritanopia · #B6A6A0

Color scale — 50 to 950

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

#F9F9F6
#F2F2ED
#E4E4D7
#D4D2BA
#BEBC98
#afac80
#96935F
#7D7A4F
#64623F
#4A4830
#2E2D1E
Base = 500Lightest = 50 · #F9F9F6Darkest = 950 · #2E2D1E
:root {
  --brand-50: #F9F9F6;
  --brand-100: #F2F2ED;
  --brand-200: #E4E4D7;
  --brand-300: #D4D2BA;
  --brand-400: #BEBC98;
  --brand-500: #afac80;
  --brand-600: #96935F;
  --brand-700: #7D7A4F;
  --brand-800: #64623F;
  --brand-900: #4A4830;
  --brand-950: #2E2D1E;
  --brand: #afac80;
  --brand-ink: #000000;
}

Colors that work with #afac80

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#F9F9F6
Tinted page background
Border#DFDECD
Hairlines and dividers
Muted text#8D8959
Captions on the surface
Accent#7C8DB3
Second voice, not a rival
Dark variant#4E4C31
Hover, pressed, headers
Light variant#F5F5EF
Selected rows, tints
Dark surface#222216
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 #afac80

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#8083AF
Analogous left#AF9480
Analogous right#9AAF80
Split-complement 1#809AAF
Split-complement 2#9480AF
Triadic 1#80AFAC
Triadic 2#AC80AF
Tetradic#80AF94

RGB percentages

Red68.6%
Green67.5%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow26.9%
Key (black)31.4%

Color previews

#afac80 text on a black background

contrast 9.04:1

Card sample

#afac80 text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 172, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 172, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afac80;
background: linear-gradient(135deg, #afac80, #93AF80);

Monochromatic scale

Palettes built from #afac80

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.

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

#afac80, answered

What color is #afac80?

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

What is the RGB value of #afac80?

rgb(175, 172, 128) — 175 red, 172 green and 128 blue out of 255, or 68.6% / 67.5% / 50.2% by channel.

Is #afac80 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4018 and perceived brightness is 66%, so black text on it reaches 9.04:1.

Should I use black or white text on #afac80?

Black. It scores 9.04:1 against #afac80, versus 2.32:1 for white — AAA at any size.

What is the complementary color of #afac80?

#8083AF sits directly opposite on the wheel. Softer options are the split-complements #809AAF and #9480AF, which give the same contrast with far less vibration.

What colors go well with #afac80?

For interface work: #F9F9F6 as the surface, #DFDECD for borders, #8D8959 for secondary text, #7C8DB3 as an accent and #4E4C31 for hover and pressed states. For a palette, the analogous pair #AF9480 and #9AAF80 stays calm, while #8083AF is the loudest partner.

What is #afac80 in CMYK for printing?

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

Is #afac80 warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF9B80; nudged cooler, #A2B17E.

Work with #afac80 in the Color Lab