Skip to content

#9fa430

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

RGB
159, 164, 48
HSL
63°, 55%, 42%
CMYK
3, 0, 71, 36
Luminance
0.3414

At a glance

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

Hex
#9fa430
Hue
63°
yellow
Saturation
55%
vivid
Lightness
42%
dark
Brightness
64%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3414
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.83:1
Closest name
Dark Khaki
ΔE2000 8.8
Where it sits
Hue63° of 360°
Saturation55%
Lightness42%
Temperature
Warm ← → Cool27% 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#9fa430
RGBrgb(159, 164, 48)
HSLhsl(63, 55%, 42%)
CMYKcmyk(3%, 0%, 71%, 36%)
LABlab(65.1 -16.3 56.4)
LCHlch(65.1 58.7 106.2)
OKLCHoklch(0.693 0.135 111.9)
Decimal10462256
Display P3color(display-p3 0.624 0.643 0.188)

Copy-ready code

/* CSS */
color: #9fa430;
background-color: #9fa430;
/* Tailwind (arbitrary) */
class="text-[#9fa430] bg-[#9fa430]"
/* SCSS */
$brand: #9fa430;
/* SwiftUI */
Color(red: 0.624, green: 0.643, blue: 0.188)
/* Android */
Color.parseColor("#9fa430")
/* Flutter */
Color(0xFF9FA430)
/* Python / OpenCV (BGR) */
(48, 164, 159)

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

Accessibility — WCAG contrast

Aa
#9fa430 on white: 2.68:1
AA ✗ fail · AA-large · AAA
Aa
#9fa430 on black: 7.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B19C1C
deuteranopia · #B19F39
tritanopia · #AA9A8D

Color scale — 50 to 950

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

#FAFBF4
#F6F6E9
#ECEECE
#E3E6A8
#D5D97D
#C7CC51
#B8BD37
#9fa430
#7A7E25
#595C1E
#383913
Base = 700Lightest = 50 · #FAFBF4Darkest = 950 · #383913
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F6F6E9;
  --brand-200: #ECEECE;
  --brand-300: #E3E6A8;
  --brand-400: #D5D97D;
  --brand-500: #C7CC51;
  --brand-600: #B8BD37;
  --brand-700: #9fa430;
  --brand-800: #7A7E25;
  --brand-900: #595C1E;
  --brand-950: #383913;
  --brand: #9fa430;
  --brand-ink: #000000;
}

Colors that work with #9fa430

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#EBEDC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#2C46A8
Second voice, not a rival
Dark variant#60631D
Hover, pressed, headers
Light variant#F9F9EB
Selected rows, tints
Dark surface#242414
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 #9fa430

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#3530A4
Analogous left#A46F30
Analogous right#65A430
Split-complement 1#3065A4
Split-complement 2#6F30A4
Triadic 1#309FA4
Triadic 2#A4309F
Tetradic#30A46F

RGB percentages

Red62.4%
Green64.3%
Blue18.8%

CMYK percentages

Cyan3.0%
Magenta0.0%
Yellow70.7%
Key (black)35.7%

Color previews

#9fa430 text on a black background

contrast 7.83:1

Card sample

#9fa430 text on a white background

contrast 2.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 164, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 164, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fa430;
background: linear-gradient(135deg, #9fa430, #52A430);

Monochromatic scale

Palettes built from #9fa430

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.

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

#9fa430, answered

What color is #9fa430?

#9fa430 is a dark vivid yellow, closest to Dark Khaki (ΔE2000 8.8). It sits at 63° on the hue wheel with 55% saturation and 42% lightness, which reads as warm.

What is the RGB value of #9fa430?

rgb(159, 164, 48) — 159 red, 164 green and 48 blue out of 255, or 62.4% / 64.3% / 18.8% by channel.

Is #9fa430 a light or a dark color?

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

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

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

What is the complementary color of #9fa430?

#3530A4 sits directly opposite on the wheel. Softer options are the split-complements #3065A4 and #6F30A4, which give the same contrast with far less vibration.

What colors go well with #9fa430?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #979B4B for secondary text, #2C46A8 as an accent and #60631D for hover and pressed states. For a palette, the analogous pair #A46F30 and #65A430 stays calm, while #3530A4 is the loudest partner.

What is #9fa430 in CMYK for printing?

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

Is #9fa430 warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A47F30; nudged cooler, #75A62E.

Work with #9fa430 in the Color Lab