Skip to content

#5d6521

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

RGB
93, 101, 33
HSL
67°, 51%, 26%
CMYK
8, 0, 67, 60
Luminance
0.1174

At a glance

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

Hex
#5d6521
Hue
67°
yellow
Saturation
51%
vivid
Lightness
26%
dark
Brightness
40%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1174
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
6.27:1
Closest name
Dark Olive Green
ΔE2000 5
Where it sits
Hue67° of 360°
Saturation51%
Lightness26%
Temperature
Warm ← → Cool31% 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#5d6521
RGBrgb(93, 101, 33)
HSLhsl(67, 51%, 26%)
CMYKcmyk(8%, 0%, 67%, 60%)
LABlab(40.8 -13.3 36.2)
LCHlch(40.8 38.5 110.2)
OKLCHoklch(0.485 0.091 115.6)
Decimal6120737
Display P3color(display-p3 0.365 0.396 0.129)

Copy-ready code

/* CSS */
color: #5d6521;
background-color: #5d6521;
/* Tailwind (arbitrary) */
class="text-[#5d6521] bg-[#5d6521]"
/* SCSS */
$brand: #5d6521;
/* SwiftUI */
Color(red: 0.365, green: 0.396, blue: 0.129)
/* Android */
Color.parseColor("#5d6521")
/* Flutter */
Color(0xFF5D6521)
/* Python / OpenCV (BGR) */
(33, 101, 93)

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 #5d6521 · 6.27:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.27:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.35:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5d6521 as text scores 6.27:1 on white and 3.35:1 on black.

Accessibility — WCAG contrast

Aa
#5d6521 on white: 6.27:1
AA ✓ pass · AA-large · AAA
Aa
#5d6521 on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #6C6018
deuteranopia · #6C6126
tritanopia · #635F57

Color scale — 50 to 950

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

#FAFAF4
#F4F6EA
#E9EDCF
#DDE3AA
#CBD680
#BAC856
#AAB83C
#8D9A32
#717B28
#5d6521
#343814
Base = 900Lightest = 50 · #FAFAF4Darkest = 950 · #343814
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F4F6EA;
  --brand-200: #E9EDCF;
  --brand-300: #DDE3AA;
  --brand-400: #CBD680;
  --brand-500: #BAC856;
  --brand-600: #AAB83C;
  --brand-700: #8D9A32;
  --brand-800: #717B28;
  --brand-900: #5d6521;
  --brand-950: #343814;
  --brand: #5d6521;
  --brand-ink: #ffffff;
}

Colors that work with #5d6521

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#E6EBC2
Hairlines and dividers
Muted text#919B4B
Captions on the surface
Accent#1E2868
Second voice, not a rival
Dark variant#58601F
Hover, pressed, headers
Light variant#F7F9EC
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 #5d6521

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
  • 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#292165
Analogous left#654B21
Analogous right#3B6521
Split-complement 1#213B65
Split-complement 2#4B2165
Triadic 1#215D65
Triadic 2#65215D
Tetradic#21654B

RGB percentages

Red36.5%
Green39.6%
Blue12.9%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow67.3%
Key (black)60.4%

Color previews

#5d6521 text on a black background

contrast 3.35:1

Card sample

#5d6521 text on a white background

contrast 6.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(93, 101, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(93, 101, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5d6521;
background: linear-gradient(135deg, #5d6521, #306521);

Monochromatic scale

Palettes built from #5d6521

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.

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

#5d6521, answered

What color is #5d6521?

#5d6521 is a dark vivid yellow, closest to Dark Olive Green (ΔE2000 5). It sits at 67° on the hue wheel with 51% saturation and 26% lightness, which reads as warm.

What is the RGB value of #5d6521?

rgb(93, 101, 33) — 93 red, 101 green and 33 blue out of 255, or 36.5% / 39.6% / 12.9% by channel.

Is #5d6521 a light or a dark color?

It is a dark color. Relative luminance is 0.1174 and perceived brightness is 37%, so white text on it reaches 6.27:1.

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

White. It scores 6.27:1 against #5d6521, versus 3.35:1 for black — AA at any size.

What is the complementary color of #5d6521?

#292165 sits directly opposite on the wheel. Softer options are the split-complements #213B65 and #4B2165, which give the same contrast with far less vibration.

What colors go well with #5d6521?

For interface work: #FAFAF4 as the surface, #E6EBC2 for borders, #919B4B for secondary text, #1E2868 as an accent and #58601F for hover and pressed states. For a palette, the analogous pair #654B21 and #3B6521 stays calm, while #292165 is the loudest partner.

What is #5d6521 in CMYK for printing?

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

Is #5d6521 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #655421; nudged cooler, #446620.

Work with #5d6521 in the Color Lab