Skip to content

#afac84

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

RGB
175, 172, 132
HSL
56°, 21%, 60%
CMYK
0, 2, 25, 31
Luminance
0.4028

At a glance

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

Hex
#afac84
Hue
56°
yellow
Saturation
21%
soft
Lightness
60%
balanced
Brightness
69%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4028
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.06:1
Closest name
Dark Khaki
ΔE2000 8.3
Where it sits
Hue56° of 360°
Saturation21%
Lightness60%
Temperature
Warm ← → Cool33% 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#afac84
RGBrgb(175, 172, 132)
HSLhsl(56, 21%, 60%)
CMYKcmyk(0%, 2%, 25%, 31%)
LABlab(69.7 -5.5 21.0)
LCHlch(69.7 21.7 104.7)
OKLCHoklch(0.737 0.055 104.1)
Decimal11512964
Display P3color(display-p3 0.686 0.675 0.518)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac84 on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#afac84 on black: 9.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B3A981
deuteranopia · #B5AB85
tritanopia · #B6A7A1

Color scale — 50 to 950

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

#F9F8F6
#F2F2ED
#E4E3D8
#D3D1BB
#BDBA99
#afac84
#949160
#7C7950
#636040
#494731
#2E2D1F
Base = 500Lightest = 50 · #F9F8F6Darkest = 950 · #2E2D1F
:root {
  --brand-50: #F9F8F6;
  --brand-100: #F2F2ED;
  --brand-200: #E4E3D8;
  --brand-300: #D3D1BB;
  --brand-400: #BDBA99;
  --brand-500: #afac84;
  --brand-600: #949160;
  --brand-700: #7C7950;
  --brand-800: #636040;
  --brand-900: #494731;
  --brand-950: #2E2D1F;
  --brand: #afac84;
  --brand-ink: #000000;
}

Colors that work with #afac84

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#DFDECE
Hairlines and dividers
Muted text#8B885A
Captions on the surface
Accent#8090B3
Second voice, not a rival
Dark variant#4D4B32
Hover, pressed, headers
Light variant#F5F5F0
Selected rows, tints
Dark surface#222116
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 #afac84

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#8487AF
Analogous left#AF9684
Analogous right#9DAF84
Split-complement 1#849DAF
Split-complement 2#9684AF
Triadic 1#84AFAC
Triadic 2#AC84AF
Tetradic#84AF96

RGB percentages

Red68.6%
Green67.5%
Blue51.8%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow24.6%
Key (black)31.4%

Color previews

#afac84 text on a black background

contrast 9.06:1

Card sample

#afac84 text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac84

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.

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

#afac84, answered

What color is #afac84?

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

What is the RGB value of #afac84?

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

Is #afac84 a light or a dark color?

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

Should I use black or white text on #afac84?

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

What is the complementary color of #afac84?

#8487AF sits directly opposite on the wheel. Softer options are the split-complements #849DAF and #9684AF, which give the same contrast with far less vibration.

What colors go well with #afac84?

For interface work: #F9F9F6 as the surface, #DFDECE for borders, #8B885A for secondary text, #8090B3 as an accent and #4D4B32 for hover and pressed states. For a palette, the analogous pair #AF9684 and #9DAF84 stays calm, while #8487AF is the loudest partner.

What is #afac84 in CMYK for printing?

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

Is #afac84 warm or cool?

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

Work with #afac84 in the Color Lab