Skip to content

#b4a607

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

RGB
180, 166, 7
HSL
55°, 93%, 37%
CMYK
0, 8, 96, 29
Luminance
0.3699

At a glance

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

Hex
#b4a607
Hue
55°
yellow
Saturation
93%
electric
Lightness
37%
dark
Brightness
71%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3699
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.40:1
Closest name
Dark Khaki
ΔE2000 10.1
Where it sits
Hue55° of 360°
Saturation93%
Lightness37%
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#b4a607
RGBrgb(180, 166, 7)
HSLhsl(55, 93%, 37%)
CMYKcmyk(0%, 8%, 96%, 29%)
LABlab(67.3 -9.3 69.1)
LCHlch(67.3 69.7 97.7)
OKLCHoklch(0.715 0.149 103.4)
Decimal11838983
Display P3color(display-p3 0.706 0.651 0.027)

Copy-ready code

/* CSS */
color: #b4a607;
background-color: #b4a607;
/* Tailwind (arbitrary) */
class="text-[#b4a607] bg-[#b4a607]"
/* SCSS */
$brand: #b4a607;
/* SwiftUI */
Color(red: 0.706, green: 0.651, blue: 0.027)
/* Android */
Color.parseColor("#b4a607")
/* Flutter */
Color(0xFFB4A607)
/* Python / OpenCV (BGR) */
(7, 166, 180)

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

Accessibility — WCAG contrast

Aa
#b4a607 on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#b4a607 on black: 8.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B6A000
deuteranopia · #BBA71E
tritanopia · #C3998D

Color scale — 50 to 950

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

#FDFCF2
#FBF9E4
#F9F5C3
#FBF293
#F9EC5D
#F7E627
#ECD909
#b4a607
#9D9106
#716909
#474106
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #474106
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF9E4;
  --brand-200: #F9F5C3;
  --brand-300: #FBF293;
  --brand-400: #F9EC5D;
  --brand-500: #F7E627;
  --brand-600: #ECD909;
  --brand-700: #b4a607;
  --brand-800: #9D9106;
  --brand-900: #716909;
  --brand-950: #474106;
  --brand: #b4a607;
  --brand-ink: #000000;
}

Colors that work with #b4a607

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#9B944B
Captions on the surface
Accent#033FB8
Second voice, not a rival
Dark variant#7B7105
Hover, pressed, headers
Light variant#FEFCE6
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 #b4a607

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#0715B4
Analogous left#B44F07
Analogous right#6CB407
Split-complement 1#076CB4
Split-complement 2#4F07B4
Triadic 1#07B4A6
Triadic 2#A607B4
Tetradic#07B44F

RGB percentages

Red70.6%
Green65.1%
Blue2.7%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow96.1%
Key (black)29.4%

Color previews

#b4a607 text on a black background

contrast 8.40:1

Card sample

#b4a607 text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 166, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 166, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b4a607;
background: linear-gradient(135deg, #b4a607, #4FB407);

Monochromatic scale

Palettes built from #b4a607

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.

#b4a607 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#b4a607, answered

What color is #b4a607?

#b4a607 is a dark electric yellow, closest to Dark Khaki (ΔE2000 10.1). It sits at 55° on the hue wheel with 93% saturation and 37% lightness, which reads as warm.

What is the RGB value of #b4a607?

rgb(180, 166, 7) — 180 red, 166 green and 7 blue out of 255, or 70.6% / 65.1% / 2.7% by channel.

Is #b4a607 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3699 and perceived brightness is 63%, so black text on it reaches 8.40:1.

Should I use black or white text on #b4a607?

Black. It scores 8.40:1 against #b4a607, versus 2.50:1 for white — AAA at any size.

What is the complementary color of #b4a607?

#0715B4 sits directly opposite on the wheel. Softer options are the split-complements #076CB4 and #4F07B4, which give the same contrast with far less vibration.

What colors go well with #b4a607?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #033FB8 as an accent and #7B7105 for hover and pressed states. For a palette, the analogous pair #B44F07 and #6CB407 stays calm, while #0715B4 is the loudest partner.

What is #b4a607 in CMYK for printing?

cmyk(0%, 8%, 96%, 29%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #b4a607 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 #B47507; nudged cooler, #84B605.

Work with #b4a607 in the Color Lab