Skip to content

#afba72

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

RGB
175, 186, 114
HSL
69°, 34%, 59%
CMYK
6, 0, 39, 27
Luminance
0.4545

At a glance

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

Hex
#afba72
Hue
69°
yellow
Saturation
34%
soft
Lightness
59%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4545
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
10.09:1
Closest name
Dark Khaki
ΔE2000 5
Where it sits
Hue69° of 360°
Saturation34%
Lightness59%
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#afba72
RGBrgb(175, 186, 114)
HSLhsl(69, 34%, 59%)
CMYKcmyk(6%, 0%, 39%, 27%)
LABlab(73.2 -15.2 35.2)
LCHlch(73.2 38.4 113.3)
OKLCHoklch(0.763 0.096 115.8)
Decimal11516530
Display P3color(display-p3 0.686 0.729 0.447)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba72 on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#afba72 on black: 10.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C3B36D
deuteranopia · #C2B475
tritanopia · #B6B3A8

Color scale — 50 to 950

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

#F9F9F5
#F3F4EC
#E5E8D4
#D4DAB4
#BFC88E
#afba72
#98A450
#7E8943
#656E36
#4B512A
#2F321A
Base = 500Lightest = 50 · #F9F9F5Darkest = 950 · #2F321A
:root {
  --brand-50: #F9F9F5;
  --brand-100: #F3F4EC;
  --brand-200: #E5E8D4;
  --brand-300: #D4DAB4;
  --brand-400: #BFC88E;
  --brand-500: #afba72;
  --brand-600: #98A450;
  --brand-700: #7E8943;
  --brand-800: #656E36;
  --brand-900: #4B512A;
  --brand-950: #2F321A;
  --brand: #afba72;
  --brand-ink: #000000;
}

Colors that work with #afba72

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#F9FAF5
Tinted page background
Border#E0E4C8
Hairlines and dividers
Muted text#8E9A4B
Captions on the surface
Accent#6E75BE
Second voice, not a rival
Dark variant#4F562A
Hover, pressed, headers
Light variant#F5F7EE
Selected rows, tints
Dark surface#222414
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 #afba72

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#7D72BA
Analogous left#BAA172
Analogous right#8BBA72
Split-complement 1#728BBA
Split-complement 2#A172BA
Triadic 1#72AFBA
Triadic 2#BA72AF
Tetradic#72BAA1

RGB percentages

Red68.6%
Green72.9%
Blue44.7%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow38.7%
Key (black)27.1%

Color previews

#afba72 text on a black background

contrast 10.09:1

Card sample

#afba72 text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 186, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba72;
background: linear-gradient(135deg, #afba72, #7FBA72);

Monochromatic scale

Palettes built from #afba72

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.

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

#afba72, answered

What color is #afba72?

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

What is the RGB value of #afba72?

rgb(175, 186, 114) — 175 red, 186 green and 114 blue out of 255, or 68.6% / 72.9% / 44.7% by channel.

Is #afba72 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4545 and perceived brightness is 69%, so black text on it reaches 10.09:1.

Should I use black or white text on #afba72?

Black. It scores 10.09:1 against #afba72, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #afba72?

#7D72BA sits directly opposite on the wheel. Softer options are the split-complements #728BBA and #A172BA, which give the same contrast with far less vibration.

What colors go well with #afba72?

For interface work: #F9FAF5 as the surface, #E0E4C8 for borders, #8E9A4B for secondary text, #6E75BE as an accent and #4F562A for hover and pressed states. For a palette, the analogous pair #BAA172 and #8BBA72 stays calm, while #7D72BA is the loudest partner.

What is #afba72 in CMYK for printing?

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

Is #afba72 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 #BAAB72; nudged cooler, #94BC70.

Work with #afba72 in the Color Lab