Skip to content

#9da172

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

RGB
157, 161, 114
HSL
65°, 20%, 54%
CMYK
3, 0, 29, 37
Luminance
0.3387

At a glance

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

Hex
#9da172
Hue
65°
yellow
Saturation
20%
soft
Lightness
54%
balanced
Brightness
63%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3387
WCAG relative
Temperature
Warm
38/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
7.77:1
Closest name
Dark Khaki
ΔE2000 9.5
Where it sits
Hue65° of 360°
Saturation20%
Lightness54%
Temperature
Warm ← → Cool38% 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#9da172
RGBrgb(157, 161, 114)
HSLhsl(65, 20%, 54%)
CMYKcmyk(3%, 0%, 29%, 37%)
LABlab(64.9 -9.3 24.1)
LCHlch(64.9 25.8 111.1)
OKLCHoklch(0.694 0.065 112.0)
Decimal10330482
Display P3color(display-p3 0.616 0.631 0.447)

Copy-ready code

/* CSS */
color: #9da172;
background-color: #9da172;
/* Tailwind (arbitrary) */
class="text-[#9da172] bg-[#9da172]"
/* SCSS */
$brand: #9da172;
/* SwiftUI */
Color(red: 0.616, green: 0.631, blue: 0.447)
/* Android */
Color.parseColor("#9da172")
/* Flutter */
Color(0xFF9DA172)
/* Python / OpenCV (BGR) */
(114, 161, 157)

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 #9da172 · 7.77:1
Use #000000AAA at every size.
Aa
White text · 2.70:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.77:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #9da172 as text scores 2.70:1 on white and 7.77:1 on black.

Accessibility — WCAG contrast

Aa
#9da172 on white: 2.70:1
AA ✗ fail · AA-large · AAA
Aa
#9da172 on black: 7.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A89D6F
deuteranopia · #A89E74
tritanopia · #A39C95

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9da172 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
#F2F2ED
#E3E4D8
#D0D2BC
#B9BC9A
#9da172
#8F9362
#777A52
#5F6241
#474832
#2C2D1F
Base = 500Lightest = 50 · #F8F9F6Darkest = 950 · #2C2D1F
:root {
  --brand-50: #F8F9F6;
  --brand-100: #F2F2ED;
  --brand-200: #E3E4D8;
  --brand-300: #D0D2BC;
  --brand-400: #B9BC9A;
  --brand-500: #9da172;
  --brand-600: #8F9362;
  --brand-700: #777A52;
  --brand-800: #5F6241;
  --brand-900: #474832;
  --brand-950: #2C2D1F;
  --brand: #9da172;
  --brand-ink: #000000;
}

Colors that work with #9da172

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#DDDECE
Hairlines and dividers
Muted text#868A5C
Captions on the surface
Accent#6D77A6
Second voice, not a rival
Dark variant#4A4D33
Hover, pressed, headers
Light variant#F4F5F0
Selected rows, tints
Dark surface#212216
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 #9da172

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#7672A1
Analogous left#A18D72
Analogous right#85A172
Split-complement 1#7285A1
Split-complement 2#8D72A1
Triadic 1#729DA1
Triadic 2#A1729D
Tetradic#72A18D

RGB percentages

Red61.6%
Green63.1%
Blue44.7%

CMYK percentages

Cyan2.5%
Magenta0.0%
Yellow29.2%
Key (black)36.9%

Color previews

#9da172 text on a black background

contrast 7.77:1

Card sample

#9da172 text on a white background

contrast 2.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 161, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 161, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9da172;
background: linear-gradient(135deg, #9da172, #7EA172);

Monochromatic scale

Palettes built from #9da172

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.

#9da172 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.

#9da172, answered

What color is #9da172?

#9da172 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 9.5). It sits at 65° on the hue wheel with 20% saturation and 54% lightness, which reads as warm.

What is the RGB value of #9da172?

rgb(157, 161, 114) — 157 red, 161 green and 114 blue out of 255, or 61.6% / 63.1% / 44.7% by channel.

Is #9da172 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3387 and perceived brightness is 61%, so black text on it reaches 7.77:1.

Should I use black or white text on #9da172?

Black. It scores 7.77:1 against #9da172, versus 2.70:1 for white — AAA at any size.

What is the complementary color of #9da172?

#7672A1 sits directly opposite on the wheel. Softer options are the split-complements #7285A1 and #8D72A1, which give the same contrast with far less vibration.

What colors go well with #9da172?

For interface work: #F9F9F6 as the surface, #DDDECE for borders, #868A5C for secondary text, #6D77A6 as an accent and #4A4D33 for hover and pressed states. For a palette, the analogous pair #A18D72 and #85A172 stays calm, while #7672A1 is the loudest partner.

What is #9da172 in CMYK for printing?

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

Is #9da172 warm or cool?

Warm — it scores 38 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A19472; nudged cooler, #8CA370.

Work with #9da172 in the Color Lab