Skip to content

#b9c35f

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

RGB
185, 195, 95
HSL
66°, 46%, 57%
CMYK
5, 0, 51, 24
Luminance
0.5017

At a glance

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

Hex
#b9c35f
Hue
66°
yellow
Saturation
46%
vivid
Lightness
57%
balanced
Brightness
76%
HSV value
Perceived
72%
weighted brightness
Luminance
0.5017
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.03:1
Closest name
Dark Khaki
ΔE2000 5.7
Where it sits
Hue66° of 360°
Saturation46%
Lightness57%
Temperature
Warm ← → Cool30% 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#b9c35f
RGBrgb(185, 195, 95)
HSLhsl(66, 46%, 57%)
CMYKcmyk(5%, 0%, 51%, 24%)
LABlab(76.2 -17.7 48.5)
LCHlch(76.2 51.6 110.1)
OKLCHoklch(0.788 0.125 114.0)
Decimal12174175
Display P3color(display-p3 0.725 0.765 0.373)

Copy-ready code

/* CSS */
color: #b9c35f;
background-color: #b9c35f;
/* Tailwind (arbitrary) */
class="text-[#b9c35f] bg-[#b9c35f]"
/* SCSS */
$brand: #b9c35f;
/* SwiftUI */
Color(red: 0.725, green: 0.765, blue: 0.373)
/* Android */
Color.parseColor("#b9c35f")
/* Flutter */
Color(0xFFB9C35F)
/* Python / OpenCV (BGR) */
(95, 195, 185)

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

Accessibility — WCAG contrast

Aa
#b9c35f on white: 1.90:1
AA ✗ fail · AA-large · AAA
Aa
#b9c35f on black: 11.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CFBB56
deuteranopia · #CFBD64
tritanopia · #C3B9AC

Color scale — 50 to 950

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

#FAFAF5
#F4F5EA
#E8EBD1
#DBE0AD
#C9D185
#b9c35f
#A7B243
#8B9438
#6F772C
#525724
#333616
Base = 500Lightest = 50 · #FAFAF5Darkest = 950 · #333616
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F4F5EA;
  --brand-200: #E8EBD1;
  --brand-300: #DBE0AD;
  --brand-400: #C9D185;
  --brand-500: #b9c35f;
  --brand-600: #A7B243;
  --brand-700: #8B9438;
  --brand-800: #6F772C;
  --brand-900: #525724;
  --brand-950: #333616;
  --brand: #b9c35f;
  --brand-ink: #000000;
}

Colors that work with #b9c35f

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#E5E9C4
Hairlines and dividers
Muted text#939B4B
Captions on the surface
Accent#5B6BC7
Second voice, not a rival
Dark variant#575D23
Hover, pressed, headers
Light variant#F7F8EC
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 #b9c35f

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
  • 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
  • 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#695FC3
Analogous left#C39B5F
Analogous right#87C35F
Split-complement 1#5F87C3
Split-complement 2#9B5FC3
Triadic 1#5FB9C3
Triadic 2#C35FB9
Tetradic#5FC39B

RGB percentages

Red72.5%
Green76.5%
Blue37.3%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow51.3%
Key (black)23.5%

Color previews

#b9c35f text on a black background

contrast 11.03:1

Card sample

#b9c35f text on a white background

contrast 1.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(185, 195, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(185, 195, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b9c35f;
background: linear-gradient(135deg, #b9c35f, #76C35F);

Monochromatic scale

Palettes built from #b9c35f

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.

#b9c35f 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.

#b9c35f, answered

What color is #b9c35f?

#b9c35f is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 5.7). It sits at 66° on the hue wheel with 46% saturation and 57% lightness, which reads as warm.

What is the RGB value of #b9c35f?

rgb(185, 195, 95) — 185 red, 195 green and 95 blue out of 255, or 72.5% / 76.5% / 37.3% by channel.

Is #b9c35f a light or a dark color?

It is a light color. Relative luminance is 0.5017 and perceived brightness is 72%, so black text on it reaches 11.03:1.

Should I use black or white text on #b9c35f?

Black. It scores 11.03:1 against #b9c35f, versus 1.90:1 for white — AAA at any size.

What is the complementary color of #b9c35f?

#695FC3 sits directly opposite on the wheel. Softer options are the split-complements #5F87C3 and #9B5FC3, which give the same contrast with far less vibration.

What colors go well with #b9c35f?

For interface work: #FAFAF4 as the surface, #E5E9C4 for borders, #939B4B for secondary text, #5B6BC7 as an accent and #575D23 for hover and pressed states. For a palette, the analogous pair #C39B5F and #87C35F stays calm, while #695FC3 is the loudest partner.

What is #b9c35f in CMYK for printing?

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

Is #b9c35f warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C3A85F; nudged cooler, #95C55D.

Work with #b9c35f in the Color Lab