Skip to content

#9da528

a dark, vivid yellow · warm · closest name: Dark Khaki

RGB
157, 165, 40
HSL
64°, 61%, 40%
CMYK
5, 0, 76, 35
Luminance
0.3423

At a glance

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

Hex
#9da528
Hue
64°
yellow
Saturation
61%
vivid
Lightness
40%
dark
Brightness
65%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3423
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.85:1
Closest name
Dark Khaki
ΔE2000 9.5
Where it sits
Hue64° of 360°
Saturation61%
Lightness40%
Temperature
Warm ← → Cool28% 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#9da528
RGBrgb(157, 165, 40)
HSLhsl(64, 61%, 40%)
CMYKcmyk(5%, 0%, 76%, 35%)
LABlab(65.2 -18.1 59.2)
LCHlch(65.2 61.9 107.0)
OKLCHoklch(0.693 0.142 113.3)
Decimal10331432
Display P3color(display-p3 0.616 0.647 0.157)

Copy-ready code

/* CSS */
color: #9da528;
background-color: #9da528;
/* Tailwind (arbitrary) */
class="text-[#9da528] bg-[#9da528]"
/* SCSS */
$brand: #9da528;
/* SwiftUI */
Color(red: 0.616, green: 0.647, blue: 0.157)
/* Android */
Color.parseColor("#9da528")
/* Flutter */
Color(0xFF9DA528)
/* Python / OpenCV (BGR) */
(40, 165, 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 #9da528 · 7.85:1
Use #000000AAA at every size.
Aa
White text · 2.68:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.85:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #9da528 as text scores 2.68:1 on white and 7.85:1 on black.

Accessibility — WCAG contrast

Aa
#9da528 on white: 2.68:1
AA ✗ fail · AA-large · AAA
Aa
#9da528 on black: 7.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B29D0A
deuteranopia · #B29F33
tritanopia · #A89B8D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9da528 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF4
#F6F7E8
#EDF0CC
#E5E9A5
#D8DE78
#CBD34A
#BCC530
#9da528
#7D8320
#5B601B
#393C11
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #393C11
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F6F7E8;
  --brand-200: #EDF0CC;
  --brand-300: #E5E9A5;
  --brand-400: #D8DE78;
  --brand-500: #CBD34A;
  --brand-600: #BCC530;
  --brand-700: #9da528;
  --brand-800: #7D8320;
  --brand-900: #5B601B;
  --brand-950: #393C11;
  --brand: #9da528;
  --brand-ink: #000000;
}

Colors that work with #9da528

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#FAFAF4
Tinted page background
Border#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#243DA9
Second voice, not a rival
Dark variant#626719
Hover, pressed, headers
Light variant#F9FAEA
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 #9da528

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#3028A5
Analogous left#A56E28
Analogous right#5FA528
Split-complement 1#285FA5
Split-complement 2#6E28A5
Triadic 1#289DA5
Triadic 2#A5289D
Tetradic#28A56E

RGB percentages

Red61.6%
Green64.7%
Blue15.7%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow75.8%
Key (black)35.3%

Color previews

#9da528 text on a black background

contrast 7.85:1

Card sample

#9da528 text on a white background

contrast 2.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 165, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 165, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9da528;
background: linear-gradient(135deg, #9da528, #4AA528);

Monochromatic scale

Palettes built from #9da528

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.

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

#9da528, answered

What color is #9da528?

#9da528 is a dark vivid yellow, closest to Dark Khaki (ΔE2000 9.5). It sits at 64° on the hue wheel with 61% saturation and 40% lightness, which reads as warm.

What is the RGB value of #9da528?

rgb(157, 165, 40) — 157 red, 165 green and 40 blue out of 255, or 61.6% / 64.7% / 15.7% by channel.

Is #9da528 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3423 and perceived brightness is 60%, so black text on it reaches 7.85:1.

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

Black. It scores 7.85:1 against #9da528, versus 2.68:1 for white — AAA at any size.

What is the complementary color of #9da528?

#3028A5 sits directly opposite on the wheel. Softer options are the split-complements #285FA5 and #6E28A5, which give the same contrast with far less vibration.

What colors go well with #9da528?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #243DA9 as an accent and #626719 for hover and pressed states. For a palette, the analogous pair #A56E28 and #5FA528 stays calm, while #3028A5 is the loudest partner.

What is #9da528 in CMYK for printing?

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

Is #9da528 warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A57F28; nudged cooler, #70A726.

Work with #9da528 in the Color Lab