Skip to content

#525917

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

RGB
82, 89, 23
HSL
66°, 59%, 22%
CMYK
8, 0, 74, 65
Luminance
0.0900

At a glance

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

Hex
#525917
Hue
66°
yellow
Saturation
59%
vivid
Lightness
22%
deep
Brightness
35%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0900
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
7.50:1
Closest name
Dark Olive Green
ΔE2000 7.5
Where it sits
Hue66° of 360°
Saturation59%
Lightness22%
Temperature
Warm ← → Cool30% 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#525917
RGBrgb(82, 89, 23)
HSLhsl(66, 59%, 22%)
CMYKcmyk(8%, 0%, 74%, 65%)
LABlab(36.0 -12.4 35.4)
LCHlch(36.0 37.5 109.4)
OKLCHoklch(0.444 0.088 115.3)
Decimal5396759
Display P3color(display-p3 0.322 0.349 0.090)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#525917 on white: 7.50:1
AA ✓ pass · AA-large · AAA
Aa
#525917 on black: 2.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #60540D
deuteranopia · #5F551C
tritanopia · #58544C

Color scale — 50 to 950

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

#FAFBF4
#F5F7E9
#EBEFCD
#E1E8A6
#D2DC79
#C3D14D
#B3C232
#95A22A
#778222
#525917
#373B12
Base = 900Lightest = 50 · #FAFBF4Darkest = 950 · #373B12
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F5F7E9;
  --brand-200: #EBEFCD;
  --brand-300: #E1E8A6;
  --brand-400: #D2DC79;
  --brand-500: #C3D14D;
  --brand-600: #B3C232;
  --brand-700: #95A22A;
  --brand-800: #778222;
  --brand-900: #525917;
  --brand-950: #373B12;
  --brand: #525917;
  --brand-ink: #ffffff;
}

Colors that work with #525917

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#E8EDC0
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#151F5B
Second voice, not a rival
Dark variant#5D651A
Hover, pressed, headers
Light variant#F8FAEB
Selected rows, tints
Dark surface#232414
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 #525917

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#1E1759
Analogous left#593F17
Analogous right#315917
Split-complement 1#173159
Split-complement 2#3F1759
Triadic 1#175259
Triadic 2#591752
Tetradic#17593F

RGB percentages

Red32.2%
Green34.9%
Blue9.0%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow74.2%
Key (black)65.1%

Color previews

#525917 text on a black background

contrast 2.80:1

Card sample

#525917 text on a white background

contrast 7.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 89, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 89, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #525917;
background: linear-gradient(135deg, #525917, #265917);

Monochromatic scale

Palettes built from #525917

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.

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

#525917, answered

What color is #525917?

#525917 is a deep vivid yellow, closest to Dark Olive Green (ΔE2000 7.5). It sits at 66° on the hue wheel with 59% saturation and 22% lightness, which reads as warm.

What is the RGB value of #525917?

rgb(82, 89, 23) — 82 red, 89 green and 23 blue out of 255, or 32.2% / 34.9% / 9% by channel.

Is #525917 a light or a dark color?

It is a dark color. Relative luminance is 0.0900 and perceived brightness is 32%, so white text on it reaches 7.50:1.

Should I use black or white text on #525917?

White. It scores 7.50:1 against #525917, versus 2.80:1 for black — AAA at any size.

What is the complementary color of #525917?

#1E1759 sits directly opposite on the wheel. Softer options are the split-complements #173159 and #3F1759, which give the same contrast with far less vibration.

What colors go well with #525917?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #151F5B as an accent and #5D651A for hover and pressed states. For a palette, the analogous pair #593F17 and #315917 stays calm, while #1E1759 is the loudest partner.

What is #525917 in CMYK for printing?

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

Is #525917 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #594817; nudged cooler, #3A5A16.

Work with #525917 in the Color Lab