Skip to content

#b2ba5d

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

RGB
178, 186, 93
HSL
65°, 40%, 55%
CMYK
4, 0, 50, 27
Luminance
0.4537

At a glance

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

Hex
#b2ba5d
Hue
65°
yellow
Saturation
40%
soft
Lightness
55%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4537
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
10.07:1
Closest name
Dark Khaki
ΔE2000 4.4
Where it sits
Hue65° of 360°
Saturation40%
Lightness55%
Temperature
Warm ← → Cool29% 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#b2ba5d
RGBrgb(178, 186, 93)
HSLhsl(65, 40%, 55%)
CMYKcmyk(4%, 0%, 50%, 27%)
LABlab(73.1 -16.2 45.8)
LCHlch(73.1 48.5 109.5)
OKLCHoklch(0.763 0.118 113.2)
Decimal11713117
Display P3color(display-p3 0.698 0.729 0.365)

Copy-ready code

/* CSS */
color: #b2ba5d;
background-color: #b2ba5d;
/* Tailwind (arbitrary) */
class="text-[#b2ba5d] bg-[#b2ba5d]"
/* SCSS */
$brand: #b2ba5d;
/* SwiftUI */
Color(red: 0.698, green: 0.729, blue: 0.365)
/* Android */
Color.parseColor("#b2ba5d")
/* Flutter */
Color(0xFFB2BA5D)
/* Python / OpenCV (BGR) */
(93, 186, 178)

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

Accessibility — WCAG contrast

Aa
#b2ba5d on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#b2ba5d on black: 10.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C6B255
deuteranopia · #C5B562
tritanopia · #BCB1A5

Color scale — 50 to 950

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

#F9FAF5
#F4F5EB
#E8EAD2
#DADEB0
#C7CD89
#b2ba5d
#A3AC49
#888F3D
#6D7231
#505427
#323418
Base = 500Lightest = 50 · #F9FAF5Darkest = 950 · #323418
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F4F5EB;
  --brand-200: #E8EAD2;
  --brand-300: #DADEB0;
  --brand-400: #C7CD89;
  --brand-500: #b2ba5d;
  --brand-600: #A3AC49;
  --brand-700: #888F3D;
  --brand-800: #6D7231;
  --brand-900: #505427;
  --brand-950: #323418;
  --brand: #b2ba5d;
  --brand-ink: #000000;
}

Colors that work with #b2ba5d

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#E4E7C6
Hairlines and dividers
Muted text#949B4B
Captions on the surface
Accent#5869BF
Second voice, not a rival
Dark variant#555926
Hover, pressed, headers
Light variant#F6F7ED
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 #b2ba5d

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#655DBA
Analogous left#BA945D
Analogous right#83BA5D
Split-complement 1#5D83BA
Split-complement 2#945DBA
Triadic 1#5DB2BA
Triadic 2#BA5DB2
Tetradic#5DBA94

RGB percentages

Red69.8%
Green72.9%
Blue36.5%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow50.0%
Key (black)27.1%

Color previews

#b2ba5d text on a black background

contrast 10.07:1

Card sample

#b2ba5d text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 186, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 186, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2ba5d;
background: linear-gradient(135deg, #b2ba5d, #74BA5D);

Monochromatic scale

Palettes built from #b2ba5d

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.

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

#b2ba5d, answered

What color is #b2ba5d?

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

What is the RGB value of #b2ba5d?

rgb(178, 186, 93) — 178 red, 186 green and 93 blue out of 255, or 69.8% / 72.9% / 36.5% by channel.

Is #b2ba5d a light or a dark color?

It is a mid-tone. Relative luminance is 0.4537 and perceived brightness is 69%, so black text on it reaches 10.07:1.

Should I use black or white text on #b2ba5d?

Black. It scores 10.07:1 against #b2ba5d, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #b2ba5d?

#655DBA sits directly opposite on the wheel. Softer options are the split-complements #5D83BA and #945DBA, which give the same contrast with far less vibration.

What colors go well with #b2ba5d?

For interface work: #FAFAF4 as the surface, #E4E7C6 for borders, #949B4B for secondary text, #5869BF as an accent and #555926 for hover and pressed states. For a palette, the analogous pair #BA945D and #83BA5D stays calm, while #655DBA is the loudest partner.

What is #b2ba5d in CMYK for printing?

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

Is #b2ba5d warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BAA05D; nudged cooler, #90BC5B.

Work with #b2ba5d in the Color Lab