Skip to content

#524e21

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

RGB
82, 78, 33
HSL
55°, 43%, 23%
CMYK
0, 5, 60, 68
Luminance
0.0735

At a glance

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

Hex
#524e21
Hue
55°
yellow
Saturation
43%
soft
Lightness
23%
deep
Brightness
32%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0735
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Soft
Best ink
White
8.50:1
Closest name
Dark Olive Green
ΔE2000 12
Where it sits
Hue55° of 360°
Saturation43%
Lightness23%
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#524e21
RGBrgb(82, 78, 33)
HSLhsl(55, 43%, 23%)
CMYKcmyk(0%, 5%, 60%, 68%)
LABlab(32.6 -5.2 26.8)
LCHlch(32.6 27.3 101.0)
OKLCHoklch(0.417 0.065 104.2)
Decimal5393953
Display P3color(display-p3 0.322 0.306 0.129)

Copy-ready code

/* CSS */
color: #524e21;
background-color: #524e21;
/* Tailwind (arbitrary) */
class="text-[#524e21] bg-[#524e21]"
/* SCSS */
$brand: #524e21;
/* SwiftUI */
Color(red: 0.322, green: 0.306, blue: 0.129)
/* Android */
Color.parseColor("#524e21")
/* Flutter */
Color(0xFF524E21)
/* Python / OpenCV (BGR) */
(33, 78, 82)

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 #524e21 · 8.50:1
Use #ffffffAAA at every size.
Aa
White text · 8.50: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: #524e21 as text scores 8.50:1 on white and 2.47:1 on black.

Accessibility — WCAG contrast

Aa
#524e21 on white: 8.50:1
AA ✓ pass · AA-large · AAA
Aa
#524e21 on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #554B1D
deuteranopia · #564E23
tritanopia · #584944

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #524e21 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
#F5F4EB
#EAE8D1
#DFDBAF
#CFC987
#BFB75F
#AFA646
#918A3B
#746F2F
#524e21
#353317
Base = 900Lightest = 50 · #FAF9F5Darkest = 950 · #353317
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F4EB;
  --brand-200: #EAE8D1;
  --brand-300: #DFDBAF;
  --brand-400: #CFC987;
  --brand-500: #BFB75F;
  --brand-600: #AFA646;
  --brand-700: #918A3B;
  --brand-800: #746F2F;
  --brand-900: #524e21;
  --brand-950: #353317;
  --brand: #524e21;
  --brand-ink: #ffffff;
}

Colors that work with #524e21

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#E8E5C5
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#1F3054
Second voice, not a rival
Dark variant#5B5625
Hover, pressed, headers
Light variant#F8F7ED
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 #524e21

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#212552
Analogous left#523521
Analogous right#3D5221
Split-complement 1#213D52
Split-complement 2#352152
Triadic 1#21524E
Triadic 2#4E2152
Tetradic#215235

RGB percentages

Red32.2%
Green30.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow59.8%
Key (black)67.8%

Color previews

#524e21 text on a black background

contrast 2.47:1

Card sample

#524e21 text on a white background

contrast 8.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 78, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 78, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #524e21;
background: linear-gradient(135deg, #524e21, #355221);

Monochromatic scale

Palettes built from #524e21

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.

#524e21 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.

#524e21, answered

What color is #524e21?

#524e21 is a deep soft yellow, closest to Dark Olive Green (ΔE2000 12). It sits at 55° on the hue wheel with 43% saturation and 23% lightness, which reads as warm.

What is the RGB value of #524e21?

rgb(82, 78, 33) — 82 red, 78 green and 33 blue out of 255, or 32.2% / 30.6% / 12.9% by channel.

Is #524e21 a light or a dark color?

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

Should I use black or white text on #524e21?

White. It scores 8.50:1 against #524e21, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #524e21?

#212552 sits directly opposite on the wheel. Softer options are the split-complements #213D52 and #352152, which give the same contrast with far less vibration.

What colors go well with #524e21?

For interface work: #FAFAF4 as the surface, #E8E5C5 for borders, #9B944B for secondary text, #1F3054 as an accent and #5B5625 for hover and pressed states. For a palette, the analogous pair #523521 and #3D5221 stays calm, while #212552 is the loudest partner.

What is #524e21 in CMYK for printing?

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

Is #524e21 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 #523C21; nudged cooler, #445320.

Work with #524e21 in the Color Lab