Skip to content

#bbaf5d

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

RGB
187, 175, 93
HSL
52°, 41%, 55%
CMYK
0, 6, 50, 27
Luminance
0.4202

At a glance

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

Hex
#bbaf5d
Hue
52°
yellow
Saturation
41%
soft
Lightness
55%
balanced
Brightness
73%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4202
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.40:1
Closest name
Dark Khaki
ΔE2000 2.9
Where it sits
Hue52° of 360°
Saturation41%
Lightness55%
Temperature
Warm ← → Cool19% 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#bbaf5d
RGBrgb(187, 175, 93)
HSLhsl(52, 41%, 55%)
CMYKcmyk(0%, 6%, 50%, 27%)
LABlab(70.9 -6.8 43.2)
LCHlch(70.9 43.8 98.9)
OKLCHoklch(0.747 0.105 101.1)
Decimal12300125
Display P3color(display-p3 0.733 0.686 0.365)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bbaf5d on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#bbaf5d on black: 9.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BCAB56
deuteranopia · #C0B061
tritanopia · #C7A59C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #bbaf5d 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
#F5F3EB
#EAE7D2
#DED8B0
#CDC488
#bbaf5d
#ACA048
#90853C
#736A30
#544E26
#353118
Base = 500Lightest = 50 · #FAF9F5Darkest = 950 · #353118
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F3EB;
  --brand-200: #EAE7D2;
  --brand-300: #DED8B0;
  --brand-400: #CDC488;
  --brand-500: #bbaf5d;
  --brand-600: #ACA048;
  --brand-700: #90853C;
  --brand-800: #736A30;
  --brand-900: #544E26;
  --brand-950: #353118;
  --brand: #bbaf5d;
  --brand-ink: #000000;
}

Colors that work with #bbaf5d

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#E7E3C6
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#587FC0
Second voice, not a rival
Dark variant#5A5326
Hover, pressed, headers
Light variant#F7F6ED
Selected rows, tints
Dark surface#242214
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 #bbaf5d

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#5D69BB
Analogous left#BB805D
Analogous right#98BB5D
Split-complement 1#5D98BB
Split-complement 2#805DBB
Triadic 1#5DBBAF
Triadic 2#AF5DBB
Tetradic#5DBB80

RGB percentages

Red73.3%
Green68.6%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta6.4%
Yellow50.3%
Key (black)26.7%

Color previews

#bbaf5d text on a black background

contrast 9.40:1

Card sample

#bbaf5d text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 175, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 175, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bbaf5d;
background: linear-gradient(135deg, #bbaf5d, #88BB5D);

Monochromatic scale

Palettes built from #bbaf5d

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.

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

#bbaf5d, answered

What color is #bbaf5d?

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

What is the RGB value of #bbaf5d?

rgb(187, 175, 93) — 187 red, 175 green and 93 blue out of 255, or 73.3% / 68.6% / 36.5% by channel.

Is #bbaf5d a light or a dark color?

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

Should I use black or white text on #bbaf5d?

Black. It scores 9.40:1 against #bbaf5d, versus 2.23:1 for white — AAA at any size.

What is the complementary color of #bbaf5d?

#5D69BB sits directly opposite on the wheel. Softer options are the split-complements #5D98BB and #805DBB, which give the same contrast with far less vibration.

What colors go well with #bbaf5d?

For interface work: #FAFAF4 as the surface, #E7E3C6 for borders, #9B914B for secondary text, #587FC0 as an accent and #5A5326 for hover and pressed states. For a palette, the analogous pair #BB805D and #98BB5D stays calm, while #5D69BB is the loudest partner.

What is #bbaf5d in CMYK for printing?

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

Is #bbaf5d warm or cool?

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

Work with #bbaf5d in the Color Lab