Skip to content

#b2ba4b

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

RGB
178, 186, 75
HSL
64°, 45%, 51%
CMYK
4, 0, 60, 27
Luminance
0.4509

At a glance

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

Hex
#b2ba4b
Hue
64°
yellow
Saturation
45%
soft
Lightness
51%
balanced
Brightness
73%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4509
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
10.02:1
Closest name
Dark Khaki
ΔE2000 6
Where it sits
Hue64° of 360°
Saturation45%
Lightness51%
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#b2ba4b
RGBrgb(178, 186, 75)
HSLhsl(64, 45%, 51%)
CMYKcmyk(4%, 0%, 60%, 27%)
LABlab(73.0 -17.7 53.9)
LCHlch(73.0 56.7 108.2)
OKLCHoklch(0.761 0.135 113.0)
Decimal11713099
Display P3color(display-p3 0.698 0.729 0.294)

Copy-ready code

/* CSS */
color: #b2ba4b;
background-color: #b2ba4b;
/* Tailwind (arbitrary) */
class="text-[#b2ba4b] bg-[#b2ba4b]"
/* SCSS */
$brand: #b2ba4b;
/* SwiftUI */
Color(red: 0.698, green: 0.729, blue: 0.294)
/* Android */
Color.parseColor("#b2ba4b")
/* Flutter */
Color(0xFFB2BA4B)
/* Python / OpenCV (BGR) */
(75, 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 #b2ba4b · 10.02:1
Use #000000AAA at every size.
Aa
White text · 2.10:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.02:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b2ba4b as text scores 2.10:1 on white and 10.02:1 on black.

Accessibility — WCAG contrast

Aa
#b2ba4b on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#b2ba4b on black: 10.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C7B23E
deuteranopia · #C7B452
tritanopia · #BDB0A2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b2ba4b is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAFAF5
#F4F5EA
#E9EBD1
#DCE0AE
#CBD085
#BAC15D
#b2ba4b
#8D9339
#71762D
#535624
#343617
Base = 600Lightest = 50 · #FAFAF5Darkest = 950 · #343617
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F4F5EA;
  --brand-200: #E9EBD1;
  --brand-300: #DCE0AE;
  --brand-400: #CBD085;
  --brand-500: #BAC15D;
  --brand-600: #b2ba4b;
  --brand-700: #8D9339;
  --brand-800: #71762D;
  --brand-900: #535624;
  --brand-950: #343617;
  --brand: #b2ba4b;
  --brand-ink: #000000;
}

Colors that work with #b2ba4b

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#E6E8C4
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#465CBF
Second voice, not a rival
Dark variant#585C23
Hover, pressed, headers
Light variant#F7F8ED
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 #b2ba4b

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#534BBA
Analogous left#BA8B4B
Analogous right#7BBA4B
Split-complement 1#4B7BBA
Split-complement 2#8B4BBA
Triadic 1#4BB2BA
Triadic 2#BA4BB2
Tetradic#4BBA8B

RGB percentages

Red69.8%
Green72.9%
Blue29.4%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow59.7%
Key (black)27.1%

Color previews

#b2ba4b text on a black background

contrast 10.02:1

Card sample

#b2ba4b text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2ba4b

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.

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

#b2ba4b, answered

What color is #b2ba4b?

#b2ba4b is a balanced soft yellow, closest to Dark Khaki (ΔE2000 6). It sits at 64° on the hue wheel with 45% saturation and 51% lightness, which reads as warm.

What is the RGB value of #b2ba4b?

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

Is #b2ba4b a light or a dark color?

It is a mid-tone. Relative luminance is 0.4509 and perceived brightness is 68%, so black text on it reaches 10.02:1.

Should I use black or white text on #b2ba4b?

Black. It scores 10.02:1 against #b2ba4b, versus 2.10:1 for white — AAA at any size.

What is the complementary color of #b2ba4b?

#534BBA sits directly opposite on the wheel. Softer options are the split-complements #4B7BBA and #8B4BBA, which give the same contrast with far less vibration.

What colors go well with #b2ba4b?

For interface work: #FAFAF4 as the surface, #E6E8C4 for borders, #959B4B for secondary text, #465CBF as an accent and #585C23 for hover and pressed states. For a palette, the analogous pair #BA8B4B and #7BBA4B stays calm, while #534BBA is the loudest partner.

What is #b2ba4b in CMYK for printing?

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

Is #b2ba4b 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 #BA994B; nudged cooler, #8ABD49.

Work with #b2ba4b in the Color Lab