Skip to content

#5b4b21

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

RGB
91, 75, 33
HSL
43°, 47%, 24%
CMYK
0, 18, 64, 64
Luminance
0.0737

At a glance

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

Hex
#5b4b21
Hue
43°
yellow
Saturation
47%
vivid
Lightness
24%
deep
Brightness
36%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0737
WCAG relative
Temperature
Warm
11/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
8.49:1
Closest name
Dark Olive Green
ΔE2000 16.4
Where it sits
Hue43° of 360°
Saturation47%
Lightness24%
Temperature
Warm ← → Cool11% 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#5b4b21
RGBrgb(91, 75, 33)
HSLhsl(43, 47%, 24%)
CMYKcmyk(0%, 18%, 64%, 64%)
LABlab(32.6 1.0 27.1)
LCHlch(32.6 27.1 87.8)
OKLCHoklch(0.420 0.063 88.6)
Decimal5983009
Display P3color(display-p3 0.357 0.294 0.129)

Copy-ready code

/* CSS */
color: #5b4b21;
background-color: #5b4b21;
/* Tailwind (arbitrary) */
class="text-[#5b4b21] bg-[#5b4b21]"
/* SCSS */
$brand: #5b4b21;
/* SwiftUI */
Color(red: 0.357, green: 0.294, blue: 0.129)
/* Android */
Color.parseColor("#5b4b21")
/* Flutter */
Color(0xFF5B4B21)
/* Python / OpenCV (BGR) */
(33, 75, 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 #5b4b21 · 8.49:1
Use #ffffffAAA at every size.
Aa
White text · 8.49:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.47:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5b4b21 as text scores 8.49:1 on white and 2.47:1 on black.

Accessibility — WCAG contrast

Aa
#5b4b21 on white: 8.49:1
AA ✓ pass · AA-large · AAA
Aa
#5b4b21 on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #534A1D
deuteranopia · #574F23
tritanopia · #624542

Color scale — 50 to 950

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

#FAF9F5
#F5F2EA
#ECE4D0
#E1D3AD
#D2BC83
#C3A65A
#B49441
#967B36
#78632B
#5b4b21
#372E16
Base = 900Lightest = 50 · #FAF9F5Darkest = 950 · #372E16
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F2EA;
  --brand-200: #ECE4D0;
  --brand-300: #E1D3AD;
  --brand-400: #D2BC83;
  --brand-500: #C3A65A;
  --brand-600: #B49441;
  --brand-700: #967B36;
  --brand-800: #78632B;
  --brand-900: #5b4b21;
  --brand-950: #372E16;
  --brand: #5b4b21;
  --brand-ink: #ffffff;
}

Colors that work with #5b4b21

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#FAF9F4
Tinted page background
Border#E9DFC3
Hairlines and dividers
Muted text#9B854B
Captions on the surface
Accent#1E405D
Second voice, not a rival
Dark variant#5E4D22
Hover, pressed, headers
Light variant#F8F5EC
Selected rows, tints
Dark surface#242014
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 #5b4b21

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#21315B
Analogous left#5B2E21
Analogous right#4E5B21
Split-complement 1#214E5B
Split-complement 2#2E215B
Triadic 1#215B4B
Triadic 2#4B215B
Tetradic#215B2E

RGB percentages

Red35.7%
Green29.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta17.6%
Yellow63.7%
Key (black)64.3%

Color previews

#5b4b21 text on a black background

contrast 2.47:1

Card sample

#5b4b21 text on a white background

contrast 8.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 75, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 75, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b4b21;
background: linear-gradient(135deg, #5b4b21, #445B21);

Monochromatic scale

Palettes built from #5b4b21

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.

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

#5b4b21, answered

What color is #5b4b21?

#5b4b21 is a deep vivid yellow, closest to Dark Olive Green (ΔE2000 16.4). It sits at 43° on the hue wheel with 47% saturation and 24% lightness, which reads as warm.

What is the RGB value of #5b4b21?

rgb(91, 75, 33) — 91 red, 75 green and 33 blue out of 255, or 35.7% / 29.4% / 12.9% by channel.

Is #5b4b21 a light or a dark color?

It is a dark color. Relative luminance is 0.0737 and perceived brightness is 30%, so white text on it reaches 8.49:1.

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

White. It scores 8.49:1 against #5b4b21, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #5b4b21?

#21315B sits directly opposite on the wheel. Softer options are the split-complements #214E5B and #2E215B, which give the same contrast with far less vibration.

What colors go well with #5b4b21?

For interface work: #FAF9F4 as the surface, #E9DFC3 for borders, #9B854B for secondary text, #1E405D as an accent and #5E4D22 for hover and pressed states. For a palette, the analogous pair #5B2E21 and #4E5B21 stays calm, while #21315B is the loudest partner.

What is #5b4b21 in CMYK for printing?

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

Is #5b4b21 warm or cool?

Warm — it scores 11 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5B3D21; nudged cooler, #575C20.

Work with #5b4b21 in the Color Lab