Skip to content

#b3af2e

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

RGB
179, 175, 46
HSL
58°, 59%, 44%
CMYK
0, 2, 74, 30
Luminance
0.4044

At a glance

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

Hex
#b3af2e
Hue
58°
yellow
Saturation
59%
vivid
Lightness
44%
dark
Brightness
70%
HSV value
Perceived
65%
weighted brightness
Luminance
0.4044
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.09:1
Closest name
Dark Khaki
ΔE2000 7.5
Where it sits
Hue58° of 360°
Saturation59%
Lightness44%
Temperature
Warm ← → Cool23% 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#b3af2e
RGBrgb(179, 175, 46)
HSLhsl(58, 59%, 44%)
CMYKcmyk(0%, 2%, 74%, 30%)
LABlab(69.8 -13.4 62.2)
LCHlch(69.8 63.6 102.1)
OKLCHoklch(0.735 0.143 107.6)
Decimal11775790
Display P3color(display-p3 0.702 0.686 0.180)

Copy-ready code

/* CSS */
color: #b3af2e;
background-color: #b3af2e;
/* Tailwind (arbitrary) */
class="text-[#b3af2e] bg-[#b3af2e]"
/* SCSS */
$brand: #b3af2e;
/* SwiftUI */
Color(red: 0.702, green: 0.686, blue: 0.180)
/* Android */
Color.parseColor("#b3af2e")
/* Flutter */
Color(0xFFB3AF2E)
/* Python / OpenCV (BGR) */
(46, 175, 179)

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

Accessibility — WCAG contrast

Aa
#b3af2e on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#b3af2e on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BEA813
deuteranopia · #C0AD38
tritanopia · #C0A396

Color scale — 50 to 950

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

#FBFBF4
#F7F6E9
#EFEECD
#E8E6A6
#DDDA79
#D1CD4C
#b3af2e
#A29F2A
#827F21
#5E5C1C
#3B3A11
Base = 600Lightest = 50 · #FBFBF4Darkest = 950 · #3B3A11
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEECD;
  --brand-300: #E8E6A6;
  --brand-400: #DDDA79;
  --brand-500: #D1CD4C;
  --brand-600: #b3af2e;
  --brand-700: #A29F2A;
  --brand-800: #827F21;
  --brand-900: #5E5C1C;
  --brand-950: #3B3A11;
  --brand: #b3af2e;
  --brand-ink: #000000;
}

Colors that work with #b3af2e

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#EDEBC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#2951B7
Second voice, not a rival
Dark variant#65631A
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 #b3af2e

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#2E32B3
Analogous left#B36C2E
Analogous right#74B32E
Split-complement 1#2E74B3
Split-complement 2#6C2EB3
Triadic 1#2EB3AF
Triadic 2#AF2EB3
Tetradic#2EB36C

RGB percentages

Red70.2%
Green68.6%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow74.3%
Key (black)29.8%

Color previews

#b3af2e text on a black background

contrast 9.09:1

Card sample

#b3af2e text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b3af2e

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.

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

#b3af2e, answered

What color is #b3af2e?

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

What is the RGB value of #b3af2e?

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

Is #b3af2e a light or a dark color?

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

Should I use black or white text on #b3af2e?

Black. It scores 9.09:1 against #b3af2e, versus 2.31:1 for white — AAA at any size.

What is the complementary color of #b3af2e?

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

What colors go well with #b3af2e?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #2951B7 as an accent and #65631A for hover and pressed states. For a palette, the analogous pair #B36C2E and #74B32E stays calm, while #2E32B3 is the loudest partner.

What is #b3af2e 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 #b3af2e warm or cool?

Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B3812E; nudged cooler, #87B52C.

Work with #b3af2e in the Color Lab