Skip to content

#b2ac3e

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

RGB
178, 172, 62
HSL
57°, 48%, 47%
CMYK
0, 3, 65, 30
Luminance
0.3932

At a glance

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

Hex
#b2ac3e
Hue
57°
yellow
Saturation
48%
vivid
Lightness
47%
balanced
Brightness
70%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3932
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
8.86:1
Closest name
Dark Khaki
ΔE2000 6.1
Where it sits
Hue57° of 360°
Saturation48%
Lightness47%
Temperature
Warm ← → Cool22% 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#b2ac3e
RGBrgb(178, 172, 62)
HSLhsl(57, 48%, 47%)
CMYKcmyk(0%, 3%, 65%, 30%)
LABlab(69.0 -11.4 55.2)
LCHlch(69.0 56.4 101.7)
OKLCHoklch(0.729 0.130 106.2)
Decimal11709502
Display P3color(display-p3 0.698 0.675 0.243)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2ac3e on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#b2ac3e on black: 8.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BAA630
deuteranopia · #BDAA45
tritanopia · #BFA195

Color scale — 50 to 950

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

#FAFAF4
#F5F5EA
#ECEAD0
#E2DFAC
#D3CF82
#C5BF59
#b2ac3e
#979235
#79752A
#585622
#373515
Base = 600Lightest = 50 · #FAFAF4Darkest = 950 · #373515
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F5F5EA;
  --brand-200: #ECEAD0;
  --brand-300: #E2DFAC;
  --brand-400: #D3CF82;
  --brand-500: #C5BF59;
  --brand-600: #b2ac3e;
  --brand-700: #979235;
  --brand-800: #79752A;
  --brand-900: #585622;
  --brand-950: #373515;
  --brand: #b2ac3e;
  --brand-ink: #000000;
}

Colors that work with #b2ac3e

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#EAE8C2
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#395FB7
Second voice, not a rival
Dark variant#5F5B21
Hover, pressed, headers
Light variant#F8F8EC
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 #b2ac3e

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#3E44B2
Analogous left#B2723E
Analogous right#7EB23E
Split-complement 1#3E7EB2
Split-complement 2#723EB2
Triadic 1#3EB2AC
Triadic 2#AC3EB2
Tetradic#3EB272

RGB percentages

Red69.8%
Green67.5%
Blue24.3%

CMYK percentages

Cyan0.0%
Magenta3.4%
Yellow65.2%
Key (black)30.2%

Color previews

#b2ac3e text on a black background

contrast 8.86:1

Card sample

#b2ac3e text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 172, 62, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 172, 62, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2ac3e;
background: linear-gradient(135deg, #b2ac3e, #6BB23E);

Monochromatic scale

Palettes built from #b2ac3e

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.

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

#b2ac3e, answered

What color is #b2ac3e?

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

What is the RGB value of #b2ac3e?

rgb(178, 172, 62) — 178 red, 172 green and 62 blue out of 255, or 69.8% / 67.5% / 24.3% by channel.

Is #b2ac3e a light or a dark color?

It is a mid-tone. Relative luminance is 0.3932 and perceived brightness is 65%, so black text on it reaches 8.86:1.

Should I use black or white text on #b2ac3e?

Black. It scores 8.86:1 against #b2ac3e, versus 2.37:1 for white — AAA at any size.

What is the complementary color of #b2ac3e?

#3E44B2 sits directly opposite on the wheel. Softer options are the split-complements #3E7EB2 and #723EB2, which give the same contrast with far less vibration.

What colors go well with #b2ac3e?

For interface work: #FAFAF4 as the surface, #EAE8C2 for borders, #9B974B for secondary text, #395FB7 as an accent and #5F5B21 for hover and pressed states. For a palette, the analogous pair #B2723E and #7EB23E stays calm, while #3E44B2 is the loudest partner.

What is #b2ac3e in CMYK for printing?

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

Is #b2ac3e warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B2843E; nudged cooler, #8EB53C.

Work with #b2ac3e in the Color Lab