Skip to content

#bab034

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

RGB
186, 176, 52
HSL
56°, 56%, 47%
CMYK
0, 5, 72, 27
Luminance
0.4174

At a glance

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

Hex
#bab034
Hue
56°
yellow
Saturation
56%
vivid
Lightness
47%
balanced
Brightness
73%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4174
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.35:1
Closest name
Dark Khaki
ΔE2000 7.1
Where it sits
Hue56° of 360°
Saturation56%
Lightness47%
Temperature
Warm ← → Cool21% 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#bab034
RGBrgb(186, 176, 52)
HSLhsl(56, 56%, 47%)
CMYKcmyk(0%, 5%, 72%, 27%)
LABlab(70.7 -10.6 61.1)
LCHlch(70.7 62.0 99.8)
OKLCHoklch(0.744 0.140 104.7)
Decimal12234804
Display P3color(display-p3 0.729 0.690 0.204)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab034 on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#bab034 on black: 9.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0AA1E
deuteranopia · #C3AF3D
tritanopia · #C8A498

Color scale — 50 to 950

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

#FBFAF4
#F6F5E9
#EEECCD
#E6E2A7
#DAD37B
#CEC450
#bab034
#9F972D
#807924
#5D581E
#3A3712
Base = 600Lightest = 50 · #FBFAF4Darkest = 950 · #3A3712
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F6F5E9;
  --brand-200: #EEECCD;
  --brand-300: #E6E2A7;
  --brand-400: #DAD37B;
  --brand-500: #CEC450;
  --brand-600: #bab034;
  --brand-700: #9F972D;
  --brand-800: #807924;
  --brand-900: #5D581E;
  --brand-950: #3A3712;
  --brand: #bab034;
  --brand-ink: #000000;
}

Colors that work with #bab034

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#EDE9C0
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#2F5EBF
Second voice, not a rival
Dark variant#645E1C
Hover, pressed, headers
Light variant#F9F8EB
Selected rows, tints
Dark surface#242314
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 #bab034

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#343EBA
Analogous left#BA6D34
Analogous right#81BA34
Split-complement 1#3481BA
Split-complement 2#6D34BA
Triadic 1#34BAB0
Triadic 2#B034BA
Tetradic#34BA6D

RGB percentages

Red72.9%
Green69.0%
Blue20.4%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow72.0%
Key (black)27.1%

Color previews

#bab034 text on a black background

contrast 9.35:1

Card sample

#bab034 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 176, 52, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 176, 52, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab034;
background: linear-gradient(135deg, #bab034, #6BBA34);

Monochromatic scale

Palettes built from #bab034

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.

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

#bab034, answered

What color is #bab034?

#bab034 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7.1). It sits at 56° on the hue wheel with 56% saturation and 47% lightness, which reads as warm.

What is the RGB value of #bab034?

rgb(186, 176, 52) — 186 red, 176 green and 52 blue out of 255, or 72.9% / 69% / 20.4% by channel.

Is #bab034 a light or a dark color?

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

Should I use black or white text on #bab034?

Black. It scores 9.35:1 against #bab034, versus 2.25:1 for white — AAA at any size.

What is the complementary color of #bab034?

#343EBA sits directly opposite on the wheel. Softer options are the split-complements #3481BA and #6D34BA, which give the same contrast with far less vibration.

What colors go well with #bab034?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B954B for secondary text, #2F5EBF as an accent and #645E1C for hover and pressed states. For a palette, the analogous pair #BA6D34 and #81BA34 stays calm, while #343EBA is the loudest partner.

What is #bab034 in CMYK for printing?

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

Is #bab034 warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA8634; nudged cooler, #94BD32.

Work with #bab034 in the Color Lab