Skip to content

#9b9b3f

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

RGB
155, 155, 63
HSL
60°, 42%, 43%
CMYK
0, 0, 59, 39
Luminance
0.3077

At a glance

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

Hex
#9b9b3f
Hue
60°
yellow
Saturation
42%
soft
Lightness
43%
dark
Brightness
61%
HSV value
Perceived
58%
weighted brightness
Luminance
0.3077
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
7.15:1
Closest name
Dark Khaki
ΔE2000 9.3
Where it sits
Hue60° of 360°
Saturation42%
Lightness43%
Temperature
Warm ← → Cool25% 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#9b9b3f
RGBrgb(155, 155, 63)
HSLhsl(60, 42%, 43%)
CMYKcmyk(0%, 0%, 59%, 39%)
LABlab(62.3 -12.4 47.1)
LCHlch(62.3 48.7 104.8)
OKLCHoklch(0.671 0.115 109.1)
Decimal10197823
Display P3color(display-p3 0.608 0.608 0.247)

Copy-ready code

/* CSS */
color: #9b9b3f;
background-color: #9b9b3f;
/* Tailwind (arbitrary) */
class="text-[#9b9b3f] bg-[#9b9b3f]"
/* SCSS */
$brand: #9b9b3f;
/* SwiftUI */
Color(red: 0.608, green: 0.608, blue: 0.247)
/* Android */
Color.parseColor("#9b9b3f")
/* Flutter */
Color(0xFF9B9B3F)
/* Python / OpenCV (BGR) */
(63, 155, 155)

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

Accessibility — WCAG contrast

Aa
#9b9b3f on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#9b9b3f on black: 7.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A79535
deuteranopia · #A89844
tritanopia · #A59287

Color scale — 50 to 950

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

#FAFAF5
#F5F5EB
#EAEAD2
#DFDFAF
#CECE87
#BEBE5F
#AEAE47
#9b9b3f
#74742F
#555525
#353517
Base = 700Lightest = 50 · #FAFAF5Darkest = 950 · #353517
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F5EB;
  --brand-200: #EAEAD2;
  --brand-300: #DFDFAF;
  --brand-400: #CECE87;
  --brand-500: #BEBE5F;
  --brand-600: #AEAE47;
  --brand-700: #9b9b3f;
  --brand-800: #74742F;
  --brand-900: #555525;
  --brand-950: #353517;
  --brand: #9b9b3f;
  --brand-ink: #000000;
}

Colors that work with #9b9b3f

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#E7E7C5
Hairlines and dividers
Muted text#9B9B4B
Captions on the surface
Accent#3B549F
Second voice, not a rival
Dark variant#5B5B25
Hover, pressed, headers
Light variant#F8F8ED
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 #9b9b3f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#3F3F9B
Analogous left#9B6D3F
Analogous right#6D9B3F
Split-complement 1#3F6D9B
Split-complement 2#6D3F9B
Triadic 1#3F9B9B
Triadic 2#9B3F9B
Tetradic#3F9B6D

RGB percentages

Red60.8%
Green60.8%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow59.4%
Key (black)39.2%

Color previews

#9b9b3f text on a black background

contrast 7.15:1

Card sample

#9b9b3f text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 155, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 155, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b9b3f;
background: linear-gradient(135deg, #9b9b3f, #5E9B3F);

Monochromatic scale

Palettes built from #9b9b3f

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.

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

#9b9b3f, answered

What color is #9b9b3f?

#9b9b3f is a dark soft yellow, closest to Dark Khaki (ΔE2000 9.3). It sits at 60° on the hue wheel with 42% saturation and 43% lightness, which reads as warm.

What is the RGB value of #9b9b3f?

rgb(155, 155, 63) — 155 red, 155 green and 63 blue out of 255, or 60.8% / 60.8% / 24.7% by channel.

Is #9b9b3f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3077 and perceived brightness is 58%, so black text on it reaches 7.15:1.

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

Black. It scores 7.15:1 against #9b9b3f, versus 2.94:1 for white — AAA at any size.

What is the complementary color of #9b9b3f?

#3F3F9B sits directly opposite on the wheel. Softer options are the split-complements #3F6D9B and #6D3F9B, which give the same contrast with far less vibration.

What colors go well with #9b9b3f?

For interface work: #FAFAF4 as the surface, #E7E7C5 for borders, #9B9B4B for secondary text, #3B549F as an accent and #5B5B25 for hover and pressed states. For a palette, the analogous pair #9B6D3F and #6D9B3F stays calm, while #3F3F9B is the loudest partner.

What is #9b9b3f in CMYK for printing?

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

Is #9b9b3f warm or cool?

Warm — it scores 25 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B793F; nudged cooler, #7A9D3D.

Work with #9b9b3f in the Color Lab