Skip to content

#bba151

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

RGB
187, 161, 81
HSL
45°, 44%, 53%
CMYK
0, 14, 57, 27
Luminance
0.3665

At a glance

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

Hex
#bba151
Hue
45°
yellow
Saturation
44%
soft
Lightness
53%
balanced
Brightness
73%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3665
WCAG relative
Temperature
Warm
13/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.33:1
Closest name
Dark Khaki
ΔE2000 8.1
Where it sits
Hue45° of 360°
Saturation44%
Lightness53%
Temperature
Warm ← → Cool13% 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#bba151
RGBrgb(187, 161, 81)
HSLhsl(45, 44%, 53%)
CMYKcmyk(0%, 14%, 57%, 27%)
LABlab(67.0 -0.4 44.6)
LCHlch(67.0 44.6 90.5)
OKLCHoklch(0.716 0.104 91.6)
Decimal12296529
Display P3color(display-p3 0.733 0.631 0.318)

Copy-ready code

/* CSS */
color: #bba151;
background-color: #bba151;
/* Tailwind (arbitrary) */
class="text-[#bba151] bg-[#bba151]"
/* SCSS */
$brand: #bba151;
/* SwiftUI */
Color(red: 0.733, green: 0.631, blue: 0.318)
/* Android */
Color.parseColor("#bba151")
/* Flutter */
Color(0xFFBBA151)
/* Python / OpenCV (BGR) */
(81, 161, 187)

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

Accessibility — WCAG contrast

Aa
#bba151 on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#bba151 on black: 8.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B09F49
deuteranopia · #B6A654
tritanopia · #C9968F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #bba151 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
#F5F2EA
#EBE4D1
#DFD3AE
#D0BE86
#bba151
#B09645
#937D39
#75642E
#564A25
#362E17
Base = 500Lightest = 50 · #FAF9F5Darkest = 950 · #362E17
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F2EA;
  --brand-200: #EBE4D1;
  --brand-300: #DFD3AE;
  --brand-400: #D0BE86;
  --brand-500: #bba151;
  --brand-600: #B09645;
  --brand-700: #937D39;
  --brand-800: #75642E;
  --brand-900: #564A25;
  --brand-950: #362E17;
  --brand: #bba151;
  --brand-ink: #000000;
}

Colors that work with #bba151

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#FAF9F4
Tinted page background
Border#E8DFC4
Hairlines and dividers
Muted text#9B874B
Captions on the surface
Accent#4C85C0
Second voice, not a rival
Dark variant#5C4E24
Hover, pressed, headers
Light variant#F8F5ED
Selected rows, tints
Dark surface#242014
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 #bba151

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#516BBB
Analogous left#BB6C51
Analogous right#A0BB51
Split-complement 1#51A0BB
Split-complement 2#6C51BB
Triadic 1#51BBA1
Triadic 2#A151BB
Tetradic#51BB6C

RGB percentages

Red73.3%
Green63.1%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta13.9%
Yellow56.7%
Key (black)26.7%

Color previews

#bba151 text on a black background

contrast 8.33:1

Card sample

#bba151 text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 161, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 161, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bba151;
background: linear-gradient(135deg, #bba151, #8EBB51);

Monochromatic scale

Palettes built from #bba151

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.

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

#bba151, answered

What color is #bba151?

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

What is the RGB value of #bba151?

rgb(187, 161, 81) — 187 red, 161 green and 81 blue out of 255, or 73.3% / 63.1% / 31.8% by channel.

Is #bba151 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3665 and perceived brightness is 64%, so black text on it reaches 8.33:1.

Should I use black or white text on #bba151?

Black. It scores 8.33:1 against #bba151, versus 2.52:1 for white — AAA at any size.

What is the complementary color of #bba151?

#516BBB sits directly opposite on the wheel. Softer options are the split-complements #51A0BB and #6C51BB, which give the same contrast with far less vibration.

What colors go well with #bba151?

For interface work: #FAF9F4 as the surface, #E8DFC4 for borders, #9B874B for secondary text, #4C85C0 as an accent and #5C4E24 for hover and pressed states. For a palette, the analogous pair #BB6C51 and #A0BB51 stays calm, while #516BBB is the loudest partner.

What is #bba151 in CMYK for printing?

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

Is #bba151 warm or cool?

Warm — it scores 13 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB8951; nudged cooler, #B0BD4E.

Work with #bba151 in the Color Lab