Skip to content

#5b5708

a deep, electric yellow · warm · closest name: Dark Olive Green

RGB
91, 87, 8
HSL
57°, 84%, 19%
CMYK
0, 4, 91, 64
Luminance
0.0906

At a glance

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

Hex
#5b5708
Hue
57°
yellow
Saturation
84%
electric
Lightness
19%
deep
Brightness
36%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0906
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
7.47:1
Closest name
Dark Olive Green
ΔE2000 11
Where it sits
Hue57° of 360°
Saturation84%
Lightness19%
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#5b5708
RGBrgb(91, 87, 8)
HSLhsl(57, 84%, 19%)
CMYKcmyk(0%, 4%, 91%, 64%)
LABlab(36.1 -7.6 41.1)
LCHlch(36.1 41.8 100.4)
OKLCHoklch(0.447 0.092 106.4)
Decimal5986056
Display P3color(display-p3 0.357 0.341 0.031)

Copy-ready code

/* CSS */
color: #5b5708;
background-color: #5b5708;
/* Tailwind (arbitrary) */
class="text-[#5b5708] bg-[#5b5708]"
/* SCSS */
$brand: #5b5708;
/* SwiftUI */
Color(red: 0.357, green: 0.341, blue: 0.031)
/* Android */
Color.parseColor("#5b5708")
/* Flutter */
Color(0xFF5B5708)
/* Python / OpenCV (BGR) */
(8, 87, 91)

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#ffffff on #5b5708 · 7.47:1
Use #ffffffAAA at every size.
Aa
White text · 7.47:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.81:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5b5708 as text scores 7.47:1 on white and 2.81:1 on black.

Accessibility — WCAG contrast

Aa
#5b5708 on white: 7.47:1
AA ✓ pass · AA-large · AAA
Aa
#5b5708 on black: 2.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #605300
deuteranopia · #615610
tritanopia · #635049

Color scale — 50 to 950

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

#FCFCF2
#FAF9E6
#F6F4C5
#F6F198
#F1EB64
#EDE431
#E1D714
#BBB311
#968F0D
#6C680E
#5b5708
Base = 950Lightest = 50 · #FCFCF2Darkest = 950 · #5b5708
:root {
  --brand-50: #FCFCF2;
  --brand-100: #FAF9E6;
  --brand-200: #F6F4C5;
  --brand-300: #F6F198;
  --brand-400: #F1EB64;
  --brand-500: #EDE431;
  --brand-600: #E1D714;
  --brand-700: #BBB311;
  --brand-800: #968F0D;
  --brand-900: #6C680E;
  --brand-950: #5b5708;
  --brand: #5b5708;
  --brand-ink: #ffffff;
}

Colors that work with #5b5708

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAFAF4
Tinted page background
Border#EDEAC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#06205D
Second voice, not a rival
Dark variant#75700A
Hover, pressed, headers
Light variant#FDFCE8
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 #5b5708

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • 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 on black or near-black surfaces
  • 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#080C5B
Analogous left#5B2D08
Analogous right#355B08
Split-complement 1#08355B
Split-complement 2#2D085B
Triadic 1#085B57
Triadic 2#57085B
Tetradic#085B2D

RGB percentages

Red35.7%
Green34.1%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow91.2%
Key (black)64.3%

Color previews

#5b5708 text on a black background

contrast 2.81:1

Card sample

#5b5708 text on a white background

contrast 7.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 87, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 87, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b5708;
background: linear-gradient(135deg, #5b5708, #285B08);

Monochromatic scale

Palettes built from #5b5708

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.

#5b5708 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.

#5b5708, answered

What color is #5b5708?

#5b5708 is a deep electric yellow, closest to Dark Olive Green (ΔE2000 11). It sits at 57° on the hue wheel with 84% saturation and 19% lightness, which reads as warm.

What is the RGB value of #5b5708?

rgb(91, 87, 8) — 91 red, 87 green and 8 blue out of 255, or 35.7% / 34.1% / 3.1% by channel.

Is #5b5708 a light or a dark color?

It is a dark color. Relative luminance is 0.0906 and perceived brightness is 33%, so white text on it reaches 7.47:1.

Should I use black or white text on #5b5708?

White. It scores 7.47:1 against #5b5708, versus 2.81:1 for black — AAA at any size.

What is the complementary color of #5b5708?

#080C5B sits directly opposite on the wheel. Softer options are the split-complements #08355B and #2D085B, which give the same contrast with far less vibration.

What colors go well with #5b5708?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B974B for secondary text, #06205D as an accent and #75700A for hover and pressed states. For a palette, the analogous pair #5B2D08 and #355B08 stays calm, while #080C5B is the loudest partner.

What is #5b5708 in CMYK for printing?

cmyk(0%, 4%, 91%, 64%). 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 #5b5708 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 #5B3908; nudged cooler, #415C07.

Work with #5b5708 in the Color Lab