Skip to content

#b5b708

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

RGB
181, 183, 8
HSL
61°, 92%, 38%
CMYK
1, 0, 96, 28
Luminance
0.4371

At a glance

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

Hex
#b5b708
Hue
61°
yellow
Saturation
92%
electric
Lightness
38%
dark
Brightness
72%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4371
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.74:1
Closest name
Dark Khaki
ΔE2000 9.7
Where it sits
Hue61° of 360°
Saturation92%
Lightness38%
Temperature
Warm ← → Cool26% 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#b5b708
RGBrgb(181, 183, 8)
HSLhsl(61, 92%, 38%)
CMYKcmyk(1%, 0%, 96%, 28%)
LABlab(72.0 -17.6 72.6)
LCHlch(72.0 74.7 103.6)
OKLCHoklch(0.753 0.164 110.5)
Decimal11908872
Display P3color(display-p3 0.710 0.718 0.031)

Copy-ready code

/* CSS */
color: #b5b708;
background-color: #b5b708;
/* Tailwind (arbitrary) */
class="text-[#b5b708] bg-[#b5b708]"
/* SCSS */
$brand: #b5b708;
/* SwiftUI */
Color(red: 0.710, green: 0.718, blue: 0.031)
/* Android */
Color.parseColor("#b5b708")
/* Flutter */
Color(0xFFB5B708)
/* Python / OpenCV (BGR) */
(8, 183, 181)

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

Accessibility — WCAG contrast

Aa
#b5b708 on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#b5b708 on black: 9.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C7AE00
deuteranopia · #C8B224
tritanopia · #C3AB9C

Color scale — 50 to 950

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

#FDFDF2
#FBFBE4
#F8F9C3
#F9FA94
#F6F85E
#F3F628
#E8EB0A
#b5b708
#9B9C07
#70710A
#464606
Base = 700Lightest = 50 · #FDFDF2Darkest = 950 · #464606
:root {
  --brand-50: #FDFDF2;
  --brand-100: #FBFBE4;
  --brand-200: #F8F9C3;
  --brand-300: #F9FA94;
  --brand-400: #F6F85E;
  --brand-500: #F3F628;
  --brand-600: #E8EB0A;
  --brand-700: #b5b708;
  --brand-800: #9B9C07;
  --brand-900: #70710A;
  --brand-950: #464606;
  --brand: #b5b708;
  --brand-ink: #000000;
}

Colors that work with #b5b708

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#ECEDC0
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#0430BB
Second voice, not a rival
Dark variant#797A05
Hover, pressed, headers
Light variant#FEFEE7
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 #b5b708

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#0A08B7
Analogous left#B76208
Analogous right#5EB708
Split-complement 1#085EB7
Split-complement 2#6208B7
Triadic 1#08B5B7
Triadic 2#B708B5
Tetradic#08B762

RGB percentages

Red71.0%
Green71.8%
Blue3.1%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow95.6%
Key (black)28.2%

Color previews

#b5b708 text on a black background

contrast 9.74:1

Card sample

#b5b708 text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(181, 183, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 183, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b5b708;
background: linear-gradient(135deg, #b5b708, #40B708);

Monochromatic scale

Palettes built from #b5b708

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.

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

#b5b708, answered

What color is #b5b708?

#b5b708 is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.7). It sits at 61° on the hue wheel with 92% saturation and 38% lightness, which reads as warm.

What is the RGB value of #b5b708?

rgb(181, 183, 8) — 181 red, 183 green and 8 blue out of 255, or 71% / 71.8% / 3.1% by channel.

Is #b5b708 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4371 and perceived brightness is 67%, so black text on it reaches 9.74:1.

Should I use black or white text on #b5b708?

Black. It scores 9.74:1 against #b5b708, versus 2.16:1 for white — AAA at any size.

What is the complementary color of #b5b708?

#0A08B7 sits directly opposite on the wheel. Softer options are the split-complements #085EB7 and #6208B7, which give the same contrast with far less vibration.

What colors go well with #b5b708?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #0430BB as an accent and #797A05 for hover and pressed states. For a palette, the analogous pair #B76208 and #5EB708 stays calm, while #0A08B7 is the loudest partner.

What is #b5b708 in CMYK for printing?

cmyk(1%, 0%, 96%, 28%). 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 #b5b708 warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B77E08; nudged cooler, #75B906.

Work with #b5b708 in the Color Lab