Skip to content

#b2af2e

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

RGB
178, 175, 46
HSL
59°, 59%, 44%
CMYK
0, 2, 74, 30
Luminance
0.4032

At a glance

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

Hex
#b2af2e
Hue
59°
yellow
Saturation
59%
vivid
Lightness
44%
dark
Brightness
70%
HSV value
Perceived
65%
weighted brightness
Luminance
0.4032
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.06:1
Closest name
Dark Khaki
ΔE2000 7.5
Where it sits
Hue59° of 360°
Saturation59%
Lightness44%
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#b2af2e
RGBrgb(178, 175, 46)
HSLhsl(59, 59%, 44%)
CMYKcmyk(0%, 2%, 74%, 30%)
LABlab(69.7 -13.8 62.1)
LCHlch(69.7 63.6 102.6)
OKLCHoklch(0.734 0.144 108.1)
Decimal11710254
Display P3color(display-p3 0.698 0.686 0.180)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2af2e on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#b2af2e on black: 9.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BEA813
deuteranopia · #C0AC38
tritanopia · #BFA396

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b2af2e 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
#F7F6E9
#EFEECD
#E8E6A6
#DCDA79
#D1CE4D
#C2BF32
#b2af2e
#827F22
#5E5D1C
#3B3A12
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #3B3A12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEECD;
  --brand-300: #E8E6A6;
  --brand-400: #DCDA79;
  --brand-500: #D1CE4D;
  --brand-600: #C2BF32;
  --brand-700: #b2af2e;
  --brand-800: #827F22;
  --brand-900: #5E5D1C;
  --brand-950: #3B3A12;
  --brand: #b2af2e;
  --brand-ink: #000000;
}

Colors that work with #b2af2e

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#EDECC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#2A50B6
Second voice, not a rival
Dark variant#65641A
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 #b2af2e

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#2E31B2
Analogous left#B26D2E
Analogous right#73B22E
Split-complement 1#2E73B2
Split-complement 2#6D2EB2
Triadic 1#2EB2AF
Triadic 2#AF2EB2
Tetradic#2EB26D

RGB percentages

Red69.8%
Green68.6%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow74.2%
Key (black)30.2%

Color previews

#b2af2e text on a black background

contrast 9.06:1

Card sample

#b2af2e text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 175, 46, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 175, 46, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2af2e;
background: linear-gradient(135deg, #b2af2e, #5DB22E);

Monochromatic scale

Palettes built from #b2af2e

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.

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

#b2af2e, answered

What color is #b2af2e?

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

What is the RGB value of #b2af2e?

rgb(178, 175, 46) — 178 red, 175 green and 46 blue out of 255, or 69.8% / 68.6% / 18% by channel.

Is #b2af2e a light or a dark color?

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

Should I use black or white text on #b2af2e?

Black. It scores 9.06:1 against #b2af2e, versus 2.32:1 for white — AAA at any size.

What is the complementary color of #b2af2e?

#2E31B2 sits directly opposite on the wheel. Softer options are the split-complements #2E73B2 and #6D2EB2, which give the same contrast with far less vibration.

What colors go well with #b2af2e?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B994B for secondary text, #2A50B6 as an accent and #65641A for hover and pressed states. For a palette, the analogous pair #B26D2E and #73B22E stays calm, while #2E31B2 is the loudest partner.

What is #b2af2e in CMYK for printing?

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

Is #b2af2e 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 #B2802E; nudged cooler, #85B42C.

Work with #b2af2e in the Color Lab