Skip to content

#afb97f

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

RGB
175, 185, 127
HSL
70°, 29%, 61%
CMYK
5, 0, 31, 28
Luminance
0.4534

At a glance

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

Hex
#afb97f
Hue
70°
green
Saturation
29%
soft
Lightness
61%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4534
WCAG relative
Temperature
Warm
36/100 cool
Color family
Green
Tone
Soft
Best ink
Black
10.07:1
Closest name
Dark Khaki
ΔE2000 6.2
Where it sits
Hue70° of 360°
Saturation29%
Lightness61%
Temperature
Warm ← → Cool36% 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#afb97f
RGBrgb(175, 185, 127)
HSLhsl(70, 29%, 61%)
CMYKcmyk(5%, 0%, 31%, 28%)
LABlab(73.1 -13.0 28.3)
LCHlch(73.1 31.2 114.7)
OKLCHoklch(0.764 0.079 116.3)
Decimal11516287
Display P3color(display-p3 0.686 0.725 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb97f on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afb97f on black: 10.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C1B37B
deuteranopia · #C0B482
tritanopia · #B5B3AA

Color scale — 50 to 950

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

#F8F9F6
#F2F3EC
#E3E6D5
#D2D7B6
#BBC492
#afb97f
#929E57
#7A8448
#616A3A
#484E2D
#2D311C
Base = 500Lightest = 50 · #F8F9F6Darkest = 950 · #2D311C
:root {
  --brand-50: #F8F9F6;
  --brand-100: #F2F3EC;
  --brand-200: #E3E6D5;
  --brand-300: #D2D7B6;
  --brand-400: #BBC492;
  --brand-500: #afb97f;
  --brand-600: #929E57;
  --brand-700: #7A8448;
  --brand-800: #616A3A;
  --brand-900: #484E2D;
  --brand-950: #2D311C;
  --brand: #afb97f;
  --brand-ink: #000000;
}

Colors that work with #afb97f

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#DEE2CA
Hairlines and dividers
Muted text#899451
Captions on the surface
Accent#7B80BD
Second voice, not a rival
Dark variant#4C522D
Hover, pressed, headers
Light variant#F5F6EF
Selected rows, tints
Dark surface#212414
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 #afb97f

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
  • 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#897FB9
Analogous left#B9A67F
Analogous right#92B97F
Split-complement 1#7F92B9
Split-complement 2#A67FB9
Triadic 1#7FAFB9
Triadic 2#B97FAF
Tetradic#7FB9A6

RGB percentages

Red68.6%
Green72.5%
Blue49.8%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow31.4%
Key (black)27.5%

Color previews

#afb97f text on a black background

contrast 10.07:1

Card sample

#afb97f text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 185, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 185, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb97f;
background: linear-gradient(135deg, #afb97f, #88B97F);

Monochromatic scale

Palettes built from #afb97f

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.

#afb97f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#afb97f, answered

What color is #afb97f?

#afb97f is a balanced soft green, closest to Dark Khaki (ΔE2000 6.2). It sits at 70° on the hue wheel with 29% saturation and 61% lightness, which reads as warm.

What is the RGB value of #afb97f?

rgb(175, 185, 127) — 175 red, 185 green and 127 blue out of 255, or 68.6% / 72.5% / 49.8% by channel.

Is #afb97f a light or a dark color?

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

Should I use black or white text on #afb97f?

Black. It scores 10.07:1 against #afb97f, versus 2.09:1 for white — AAA at any size.

What is the complementary color of #afb97f?

#897FB9 sits directly opposite on the wheel. Softer options are the split-complements #7F92B9 and #A67FB9, which give the same contrast with far less vibration.

What colors go well with #afb97f?

For interface work: #F9FAF5 as the surface, #DEE2CA for borders, #899451 for secondary text, #7B80BD as an accent and #4C522D for hover and pressed states. For a palette, the analogous pair #B9A67F and #92B97F stays calm, while #897FB9 is the loudest partner.

What is #afb97f in CMYK for printing?

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

Is #afb97f warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B9AE7F; nudged cooler, #9ABB7D.

Work with #afb97f in the Color Lab