Skip to content

#b5b261

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

RGB
181, 178, 97
HSL
58°, 36%, 55%
CMYK
0, 2, 46, 29
Luminance
0.4253

At a glance

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

Hex
#b5b261
Hue
58°
yellow
Saturation
36%
soft
Lightness
55%
balanced
Brightness
71%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4253
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.51:1
Closest name
Dark Khaki
ΔE2000 2
Where it sits
Hue58° of 360°
Saturation36%
Lightness55%
Temperature
Warm ← → Cool23% 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#b5b261
RGBrgb(181, 178, 97)
HSLhsl(58, 36%, 55%)
CMYKcmyk(0%, 2%, 46%, 29%)
LABlab(71.2 -10.5 41.5)
LCHlch(71.2 42.8 104.2)
OKLCHoklch(0.748 0.104 106.8)
Decimal11907681
Display P3color(display-p3 0.710 0.698 0.380)

Copy-ready code

/* CSS */
color: #b5b261;
background-color: #b5b261;
/* Tailwind (arbitrary) */
class="text-[#b5b261] bg-[#b5b261]"
/* SCSS */
$brand: #b5b261;
/* SwiftUI */
Color(red: 0.710, green: 0.698, blue: 0.380)
/* Android */
Color.parseColor("#b5b261")
/* Flutter */
Color(0xFFB5B261)
/* Python / OpenCV (BGR) */
(97, 178, 181)

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

Accessibility — WCAG contrast

Aa
#b5b261 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#b5b261 on black: 9.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BEAC5A
deuteranopia · #C0B065
tritanopia · #C0A99F

Color scale — 50 to 950

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

#FAF9F5
#F4F4EB
#E8E8D3
#DBDAB3
#C9C78C
#b5b261
#A7A44E
#8B8841
#6F6D34
#525029
#33321A
Base = 500Lightest = 50 · #FAF9F5Darkest = 950 · #33321A
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F4F4EB;
  --brand-200: #E8E8D3;
  --brand-300: #DBDAB3;
  --brand-400: #C9C78C;
  --brand-500: #b5b261;
  --brand-600: #A7A44E;
  --brand-700: #8B8841;
  --brand-800: #6F6D34;
  --brand-900: #525029;
  --brand-950: #33321A;
  --brand: #b5b261;
  --brand-ink: #000000;
}

Colors that work with #b5b261

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#FAFAF5
Tinted page background
Border#E5E4C7
Hairlines and dividers
Muted text#9B984B
Captions on the surface
Accent#5C77BA
Second voice, not a rival
Dark variant#575529
Hover, pressed, headers
Light variant#F7F7EE
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 #b5b261

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#6164B5
Analogous left#B58861
Analogous right#8EB561
Split-complement 1#618EB5
Split-complement 2#8861B5
Triadic 1#61B5B2
Triadic 2#B261B5
Tetradic#61B588

RGB percentages

Red71.0%
Green69.8%
Blue38.0%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow46.4%
Key (black)29.0%

Color previews

#b5b261 text on a black background

contrast 9.51:1

Card sample

#b5b261 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(181, 178, 97, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 178, 97, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b5b261;
background: linear-gradient(135deg, #b5b261, #80B561);

Monochromatic scale

Palettes built from #b5b261

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.

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

#b5b261, answered

What color is #b5b261?

#b5b261 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 2). It sits at 58° on the hue wheel with 36% saturation and 55% lightness, which reads as warm.

What is the RGB value of #b5b261?

rgb(181, 178, 97) — 181 red, 178 green and 97 blue out of 255, or 71% / 69.8% / 38% by channel.

Is #b5b261 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4253 and perceived brightness is 67%, so black text on it reaches 9.51:1.

Should I use black or white text on #b5b261?

Black. It scores 9.51:1 against #b5b261, versus 2.21:1 for white — AAA at any size.

What is the complementary color of #b5b261?

#6164B5 sits directly opposite on the wheel. Softer options are the split-complements #618EB5 and #8861B5, which give the same contrast with far less vibration.

What colors go well with #b5b261?

For interface work: #FAFAF5 as the surface, #E5E4C7 for borders, #9B984B for secondary text, #5C77BA as an accent and #575529 for hover and pressed states. For a palette, the analogous pair #B58861 and #8EB561 stays calm, while #6164B5 is the loudest partner.

What is #b5b261 in CMYK for printing?

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

Is #b5b261 warm or cool?

Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B59361; nudged cooler, #9AB75F.

Work with #b5b261 in the Color Lab