Skip to content

#afb372

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

RGB
175, 179, 114
HSL
64°, 30%, 58%
CMYK
2, 0, 36, 30
Luminance
0.4257

At a glance

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

Hex
#afb372
Hue
64°
yellow
Saturation
30%
soft
Lightness
58%
balanced
Brightness
70%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4257
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.51:1
Closest name
Dark Khaki
ΔE2000 4
Where it sits
Hue64° of 360°
Saturation30%
Lightness58%
Temperature
Warm ← → Cool31% 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#afb372
RGBrgb(175, 179, 114)
HSLhsl(64, 30%, 58%)
CMYKcmyk(2%, 0%, 36%, 30%)
LABlab(71.3 -11.6 32.8)
LCHlch(71.3 34.7 109.5)
OKLCHoklch(0.748 0.086 111.3)
Decimal11514738
Display P3color(display-p3 0.686 0.702 0.447)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb372 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#afb372 on black: 9.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BCAD6D
deuteranopia · #BDAF75
tritanopia · #B7ACA3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afb372 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
#F3F3EC
#E6E7D5
#D6D8B6
#C1C492
#afb372
#9B9F56
#818547
#676A39
#4C4E2C
#30311C
Base = 500Lightest = 50 · #F9F9F6Darkest = 950 · #30311C
:root {
  --brand-50: #F9F9F6;
  --brand-100: #F3F3EC;
  --brand-200: #E6E7D5;
  --brand-300: #D6D8B6;
  --brand-400: #C1C492;
  --brand-500: #afb372;
  --brand-600: #9B9F56;
  --brand-700: #818547;
  --brand-800: #676A39;
  --brand-900: #4C4E2C;
  --brand-950: #30311C;
  --brand: #afb372;
  --brand-ink: #000000;
}

Colors that work with #afb372

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#E1E2CA
Hairlines and dividers
Muted text#919550
Captions on the surface
Accent#6E7CB7
Second voice, not a rival
Dark variant#51532D
Hover, pressed, headers
Light variant#F6F6EE
Selected rows, tints
Dark surface#232414
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 #afb372

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#7672B3
Analogous left#B39772
Analogous right#8FB372
Split-complement 1#728FB3
Split-complement 2#9772B3
Triadic 1#72AFB3
Triadic 2#B372AF
Tetradic#72B397

RGB percentages

Red68.6%
Green70.2%
Blue44.7%

CMYK percentages

Cyan2.2%
Magenta0.0%
Yellow36.3%
Key (black)29.8%

Color previews

#afb372 text on a black background

contrast 9.51:1

Card sample

#afb372 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb372

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.

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

#afb372, answered

What color is #afb372?

#afb372 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 4). It sits at 64° on the hue wheel with 30% saturation and 58% lightness, which reads as warm.

What is the RGB value of #afb372?

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

Is #afb372 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4257 and perceived brightness is 67%, so black text on it reaches 9.51:1.

Should I use black or white text on #afb372?

Black. It scores 9.51:1 against #afb372, versus 2.21:1 for white — AAA at any size.

What is the complementary color of #afb372?

#7672B3 sits directly opposite on the wheel. Softer options are the split-complements #728FB3 and #9772B3, which give the same contrast with far less vibration.

What colors go well with #afb372?

For interface work: #F9FAF5 as the surface, #E1E2CA for borders, #919550 for secondary text, #6E7CB7 as an accent and #51532D for hover and pressed states. For a palette, the analogous pair #B39772 and #8FB372 stays calm, while #7672B3 is the loudest partner.

What is #afb372 in CMYK for printing?

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

Is #afb372 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B39F72; nudged cooler, #98B570.

Work with #afb372 in the Color Lab