Skip to content

#9a8921

a dark, vivid yellow · warm · closest name: Olive

RGB
154, 137, 33
HSL
52°, 65%, 37%
CMYK
0, 11, 79, 40
Luminance
0.2487

At a glance

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

Hex
#9a8921
Hue
52°
yellow
Saturation
65%
vivid
Lightness
37%
dark
Brightness
60%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2487
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
5.97:1
Closest name
Olive
ΔE2000 6.8
Where it sits
Hue52° of 360°
Saturation65%
Lightness37%
Temperature
Warm ← → Cool18% 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#9a8921
RGBrgb(154, 137, 33)
HSLhsl(52, 65%, 37%)
CMYKcmyk(0%, 11%, 79%, 40%)
LABlab(57.0 -4.9 53.9)
LCHlch(57.0 54.1 95.2)
OKLCHoklch(0.627 0.119 99.4)
Decimal10127649
Display P3color(display-p3 0.604 0.537 0.129)

Copy-ready code

/* CSS */
color: #9a8921;
background-color: #9a8921;
/* Tailwind (arbitrary) */
class="text-[#9a8921] bg-[#9a8921]"
/* SCSS */
$brand: #9a8921;
/* SwiftUI */
Color(red: 0.604, green: 0.537, blue: 0.129)
/* Android */
Color.parseColor("#9a8921")
/* Flutter */
Color(0xFF9A8921)
/* Python / OpenCV (BGR) */
(33, 137, 154)

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

Accessibility — WCAG contrast

Aa
#9a8921 on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#9a8921 on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #978509
deuteranopia · #9C8B28
tritanopia · #A67E75

Color scale — 50 to 950

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

#FBFAF3
#F7F5E8
#F1EBCB
#EBE1A3
#E1D274
#D7C346
#CAB32B
#9a8921
#86781D
#625719
#3D370F
Base = 700Lightest = 50 · #FBFAF3Darkest = 950 · #3D370F
:root {
  --brand-50: #FBFAF3;
  --brand-100: #F7F5E8;
  --brand-200: #F1EBCB;
  --brand-300: #EBE1A3;
  --brand-400: #E1D274;
  --brand-500: #D7C346;
  --brand-600: #CAB32B;
  --brand-700: #9a8921;
  --brand-800: #86781D;
  --brand-900: #625719;
  --brand-950: #3D370F;
  --brand: #9a8921;
  --brand-ink: #000000;
}

Colors that work with #9a8921

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#EDE6C0
Hairlines and dividers
Muted text#9B904B
Captions on the surface
Accent#1D4F9E
Second voice, not a rival
Dark variant#695D17
Hover, pressed, headers
Light variant#FAF8EA
Selected rows, tints
Dark surface#242214
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 #9a8921

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#21329A
Analogous left#9A4D21
Analogous right#6F9A21
Split-complement 1#216F9A
Split-complement 2#4D219A
Triadic 1#219A89
Triadic 2#89219A
Tetradic#219A4D

RGB percentages

Red60.4%
Green53.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta11.0%
Yellow78.6%
Key (black)39.6%

Color previews

#9a8921 text on a black background

contrast 5.97:1

Card sample

#9a8921 text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(154, 137, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(154, 137, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9a8921;
background: linear-gradient(135deg, #9a8921, #5A9A21);

Monochromatic scale

Palettes built from #9a8921

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.

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

#9a8921, answered

What color is #9a8921?

#9a8921 is a dark vivid yellow, closest to Olive (ΔE2000 6.8). It sits at 52° on the hue wheel with 65% saturation and 37% lightness, which reads as warm.

What is the RGB value of #9a8921?

rgb(154, 137, 33) — 154 red, 137 green and 33 blue out of 255, or 60.4% / 53.7% / 12.9% by channel.

Is #9a8921 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2487 and perceived brightness is 53%, so black text on it reaches 5.97:1.

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

Black. It scores 5.97:1 against #9a8921, versus 3.52:1 for white — AA at any size.

What is the complementary color of #9a8921?

#21329A sits directly opposite on the wheel. Softer options are the split-complements #216F9A and #4D219A, which give the same contrast with far less vibration.

What colors go well with #9a8921?

For interface work: #FAFAF4 as the surface, #EDE6C0 for borders, #9B904B for secondary text, #1D4F9E as an accent and #695D17 for hover and pressed states. For a palette, the analogous pair #9A4D21 and #6F9A21 stays calm, while #21329A is the loudest partner.

What is #9a8921 in CMYK for printing?

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

Is #9a8921 warm or cool?

Warm — it scores 18 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9A6621; nudged cooler, #809C1F.

Work with #9a8921 in the Color Lab