Skip to content

#525a21

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

RGB
82, 90, 33
HSL
68°, 46%, 24%
CMYK
9, 0, 63, 65
Luminance
0.0922

At a glance

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

Hex
#525a21
Hue
68°
yellow
Saturation
46%
vivid
Lightness
24%
deep
Brightness
35%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0922
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
7.39:1
Closest name
Dark Olive Green
ΔE2000 6.6
Where it sits
Hue68° of 360°
Saturation46%
Lightness24%
Temperature
Warm ← → Cool32% 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#525a21
RGBrgb(82, 90, 33)
HSLhsl(68, 46%, 24%)
CMYKcmyk(9%, 0%, 63%, 65%)
LABlab(36.4 -12.3 31.1)
LCHlch(36.4 33.4 111.5)
OKLCHoklch(0.448 0.080 116.5)
Decimal5397025
Display P3color(display-p3 0.322 0.353 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#525a21 on white: 7.39:1
AA ✓ pass · AA-large · AAA
Aa
#525a21 on black: 2.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #60551B
deuteranopia · #5F5625
tritanopia · #57554E

Color scale — 50 to 950

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

#F9FAF5
#F4F5EA
#E8EBD0
#DAE1AD
#C7D284
#B4C35B
#A3B342
#889537
#6D772C
#525a21
#323716
Base = 900Lightest = 50 · #F9FAF5Darkest = 950 · #323716
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F4F5EA;
  --brand-200: #E8EBD0;
  --brand-300: #DAE1AD;
  --brand-400: #C7D284;
  --brand-500: #B4C35B;
  --brand-600: #A3B342;
  --brand-700: #889537;
  --brand-800: #6D772C;
  --brand-900: #525a21;
  --brand-950: #323716;
  --brand: #525a21;
  --brand-ink: #ffffff;
}

Colors that work with #525a21

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#E4E9C3
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#1F255C
Second voice, not a rival
Dark variant#555D22
Hover, pressed, headers
Light variant#F7F8EC
Selected rows, tints
Dark surface#222414
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 #525a21

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#29215A
Analogous left#5A4521
Analogous right#355A21
Split-complement 1#21355A
Split-complement 2#45215A
Triadic 1#21525A
Triadic 2#5A2152
Tetradic#215A45

RGB percentages

Red32.2%
Green35.3%
Blue12.9%

CMYK percentages

Cyan8.9%
Magenta0.0%
Yellow63.3%
Key (black)64.7%

Color previews

#525a21 text on a black background

contrast 2.84:1

Card sample

#525a21 text on a white background

contrast 7.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 90, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 90, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #525a21;
background: linear-gradient(135deg, #525a21, #2C5A21);

Monochromatic scale

Palettes built from #525a21

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.

#525a21 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.

#525a21, answered

What color is #525a21?

#525a21 is a deep vivid yellow, closest to Dark Olive Green (ΔE2000 6.6). It sits at 68° on the hue wheel with 46% saturation and 24% lightness, which reads as warm.

What is the RGB value of #525a21?

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

Is #525a21 a light or a dark color?

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

Should I use black or white text on #525a21?

White. It scores 7.39:1 against #525a21, versus 2.84:1 for black — AAA at any size.

What is the complementary color of #525a21?

#29215A sits directly opposite on the wheel. Softer options are the split-complements #21355A and #45215A, which give the same contrast with far less vibration.

What colors go well with #525a21?

For interface work: #FAFAF4 as the surface, #E4E9C3 for borders, #909B4B for secondary text, #1F255C as an accent and #555D22 for hover and pressed states. For a palette, the analogous pair #5A4521 and #355A21 stays calm, while #29215A is the loudest partner.

What is #525a21 in CMYK for printing?

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

Is #525a21 warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5A4D21; nudged cooler, #3D5B20.

Work with #525a21 in the Color Lab