Skip to content

#b2ab2c

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

RGB
178, 171, 44
HSL
57°, 60%, 44%
CMYK
0, 4, 75, 30
Luminance
0.3877

At a glance

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

Hex
#b2ab2c
Hue
57°
yellow
Saturation
60%
vivid
Lightness
44%
dark
Brightness
70%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3877
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
8.75:1
Closest name
Dark Khaki
ΔE2000 7.8
Where it sits
Hue57° of 360°
Saturation60%
Lightness44%
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#b2ab2c
RGBrgb(178, 171, 44)
HSLhsl(57, 60%, 44%)
CMYKcmyk(0%, 4%, 75%, 30%)
LABlab(68.6 -11.8 61.7)
LCHlch(68.6 62.8 100.9)
OKLCHoklch(0.725 0.141 106.2)
Decimal11709228
Display P3color(display-p3 0.698 0.671 0.173)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2ab2c on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#b2ab2c on black: 8.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BAA410
deuteranopia · #BDAA36
tritanopia · #BF9F93

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b2ab2c is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF4
#F7F6E8
#EFEECC
#E9E5A5
#DED878
#D3CC4B
#C4BD30
#b2ab2c
#837E20
#5F5C1B
#3C3911
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #3C3911
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E8;
  --brand-200: #EFEECC;
  --brand-300: #E9E5A5;
  --brand-400: #DED878;
  --brand-500: #D3CC4B;
  --brand-600: #C4BD30;
  --brand-700: #b2ab2c;
  --brand-800: #837E20;
  --brand-900: #5F5C1B;
  --brand-950: #3C3911;
  --brand: #b2ab2c;
  --brand-ink: #000000;
}

Colors that work with #b2ab2c

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#EDEAC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#2753B6
Second voice, not a rival
Dark variant#666219
Hover, pressed, headers
Light variant#FAF9EB
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 #b2ab2c

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#2C33B2
Analogous left#B2682C
Analogous right#76B22C
Split-complement 1#2C76B2
Split-complement 2#682CB2
Triadic 1#2CB2AB
Triadic 2#AB2CB2
Tetradic#2CB268

RGB percentages

Red69.8%
Green67.1%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow75.3%
Key (black)30.2%

Color previews

#b2ab2c text on a black background

contrast 8.75:1

Card sample

#b2ab2c text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 171, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 171, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2ab2c;
background: linear-gradient(135deg, #b2ab2c, #60B22C);

Monochromatic scale

Palettes built from #b2ab2c

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.

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

#b2ab2c, answered

What color is #b2ab2c?

#b2ab2c is a dark vivid yellow, closest to Dark Khaki (ΔE2000 7.8). It sits at 57° on the hue wheel with 60% saturation and 44% lightness, which reads as warm.

What is the RGB value of #b2ab2c?

rgb(178, 171, 44) — 178 red, 171 green and 44 blue out of 255, or 69.8% / 67.1% / 17.3% by channel.

Is #b2ab2c a light or a dark color?

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

Should I use black or white text on #b2ab2c?

Black. It scores 8.75:1 against #b2ab2c, versus 2.40:1 for white — AAA at any size.

What is the complementary color of #b2ab2c?

#2C33B2 sits directly opposite on the wheel. Softer options are the split-complements #2C76B2 and #682CB2, which give the same contrast with far less vibration.

What colors go well with #b2ab2c?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B974B for secondary text, #2753B6 as an accent and #666219 for hover and pressed states. For a palette, the analogous pair #B2682C and #76B22C stays calm, while #2C33B2 is the loudest partner.

What is #b2ab2c in CMYK for printing?

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

Is #b2ab2c 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 #B27F2C; nudged cooler, #89B42A.

Work with #b2ab2c in the Color Lab