Skip to content

#bab849

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

RGB
186, 184, 73
HSL
59°, 45%, 51%
CMYK
0, 1, 61, 27
Luminance
0.4520

At a glance

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

Hex
#bab849
Hue
59°
yellow
Saturation
45%
vivid
Lightness
51%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4520
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.04:1
Closest name
Dark Khaki
ΔE2000 5.2
Where it sits
Hue59° of 360°
Saturation45%
Lightness51%
Temperature
Warm ← → Cool24% 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#bab849
RGBrgb(186, 184, 73)
HSLhsl(59, 45%, 51%)
CMYKcmyk(0%, 1%, 61%, 27%)
LABlab(73.0 -13.5 55.0)
LCHlch(73.0 56.6 103.8)
OKLCHoklch(0.763 0.132 108.2)
Decimal12236873
Display P3color(display-p3 0.729 0.722 0.286)

Copy-ready code

/* CSS */
color: #bab849;
background-color: #bab849;
/* Tailwind (arbitrary) */
class="text-[#bab849] bg-[#bab849]"
/* SCSS */
$brand: #bab849;
/* SwiftUI */
Color(red: 0.729, green: 0.722, blue: 0.286)
/* Android */
Color.parseColor("#bab849")
/* Flutter */
Color(0xFFBAB849)
/* Python / OpenCV (BGR) */
(73, 184, 186)

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

Accessibility — WCAG contrast

Aa
#bab849 on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#bab849 on black: 10.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C6B13C
deuteranopia · #C8B550
tritanopia · #C6ADA0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #bab849 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
#F5F5EA
#EBEAD1
#E0DFAE
#D1CF85
#C1BF5C
#bab849
#949238
#76752D
#575624
#363616
Base = 600Lightest = 50 · #FAFAF5Darkest = 950 · #363616
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F5EA;
  --brand-200: #EBEAD1;
  --brand-300: #E0DFAE;
  --brand-400: #D1CF85;
  --brand-500: #C1BF5C;
  --brand-600: #bab849;
  --brand-700: #949238;
  --brand-800: #76752D;
  --brand-900: #575624;
  --brand-950: #363616;
  --brand: #bab849;
  --brand-ink: #000000;
}

Colors that work with #bab849

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#E9E8C4
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#4465BF
Second voice, not a rival
Dark variant#5C5B23
Hover, pressed, headers
Light variant#F8F8ED
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 #bab849

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#494BBA
Analogous left#BA7F49
Analogous right#84BA49
Split-complement 1#4984BA
Split-complement 2#7F49BA
Triadic 1#49BAB8
Triadic 2#B849BA
Tetradic#49BA7F

RGB percentages

Red72.9%
Green72.2%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow60.8%
Key (black)27.1%

Color previews

#bab849 text on a black background

contrast 10.04:1

Card sample

#bab849 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 184, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 184, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab849;
background: linear-gradient(135deg, #bab849, #71BA49);

Monochromatic scale

Palettes built from #bab849

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.

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

#bab849, answered

What color is #bab849?

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

What is the RGB value of #bab849?

rgb(186, 184, 73) — 186 red, 184 green and 73 blue out of 255, or 72.9% / 72.2% / 28.6% by channel.

Is #bab849 a light or a dark color?

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

Should I use black or white text on #bab849?

Black. It scores 10.04:1 against #bab849, versus 2.09:1 for white — AAA at any size.

What is the complementary color of #bab849?

#494BBA sits directly opposite on the wheel. Softer options are the split-complements #4984BA and #7F49BA, which give the same contrast with far less vibration.

What colors go well with #bab849?

For interface work: #FAFAF4 as the surface, #E9E8C4 for borders, #9B994B for secondary text, #4465BF as an accent and #5C5B23 for hover and pressed states. For a palette, the analogous pair #BA7F49 and #84BA49 stays calm, while #494BBA is the loudest partner.

What is #bab849 in CMYK for printing?

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

Is #bab849 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA8F49; nudged cooler, #93BD47.

Work with #bab849 in the Color Lab