Skip to content

#5d7f21

a dark, vivid green · neutral · closest name: Olive Drab

RGB
93, 127, 33
HSL
82°, 59%, 31%
CMYK
27, 0, 74, 50
Luminance
0.1762

At a glance

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

Hex
#5d7f21
Hue
82°
green
Saturation
59%
vivid
Lightness
31%
dark
Brightness
50%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1762
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Vivid
Best ink
White
4.64:1
Closest name
Olive Drab
ΔE2000 5.8
Where it sits
Hue82° of 360°
Saturation59%
Lightness31%
Temperature
Warm ← → Cool43% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#5d7f21
RGBrgb(93, 127, 33)
HSLhsl(82, 59%, 31%)
CMYKcmyk(27%, 0%, 74%, 50%)
LABlab(49.0 -26.9 44.6)
LCHlch(49.0 52.1 121.0)
OKLCHoklch(0.551 0.126 127.5)
Decimal6127393
Display P3color(display-p3 0.365 0.498 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d7f21 on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#5d7f21 on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #867610
deuteranopia · #817429
tritanopia · #61796D

Color scale — 50 to 950

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

#F8FBF4
#F2F7E9
#E3EFCD
#D0E8A6
#B9DC79
#A1D14D
#8EC232
#77A22A
#5d7f21
#465E1C
#2C3B12
Base = 800Lightest = 50 · #F8FBF4Darkest = 950 · #2C3B12
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F2F7E9;
  --brand-200: #E3EFCD;
  --brand-300: #D0E8A6;
  --brand-400: #B9DC79;
  --brand-500: #A1D14D;
  --brand-600: #8EC232;
  --brand-700: #77A22A;
  --brand-800: #5d7f21;
  --brand-900: #465E1C;
  --brand-950: #2C3B12;
  --brand: #5d7f21;
  --brand-ink: #ffffff;
}

Colors that work with #5d7f21

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#F8FAF4
Tinted page background
Border#DCEDC0
Hairlines and dividers
Muted text#7E9B4B
Captions on the surface
Accent#291E82
Second voice, not a rival
Dark variant#4A651A
Hover, pressed, headers
Light variant#F4FAEB
Selected rows, tints
Dark surface#1E2414
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 #5d7f21

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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
  • 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#43217F
Analogous left#7F7221
Analogous right#2E7F21
Split-complement 1#212E7F
Split-complement 2#72217F
Triadic 1#215D7F
Triadic 2#7F215D
Tetradic#217F72

RGB percentages

Red36.5%
Green49.8%
Blue12.9%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow74.0%
Key (black)50.2%

Color previews

#5d7f21 text on a black background

contrast 4.52:1

Card sample

#5d7f21 text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d7f21

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.

#5d7f21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#5d7f21, answered

What color is #5d7f21?

#5d7f21 is a dark vivid green, closest to Olive Drab (ΔE2000 5.8). It sits at 82° on the hue wheel with 59% saturation and 31% lightness, which reads as neutral.

What is the RGB value of #5d7f21?

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

Is #5d7f21 a light or a dark color?

It is a dark color. Relative luminance is 0.1762 and perceived brightness is 43%, so white text on it reaches 4.64:1.

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

White. It scores 4.64:1 against #5d7f21, versus 4.52:1 for black — AA at any size.

What is the complementary color of #5d7f21?

#43217F sits directly opposite on the wheel. Softer options are the split-complements #212E7F and #72217F, which give the same contrast with far less vibration.

What colors go well with #5d7f21?

For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7E9B4B for secondary text, #291E82 as an accent and #4A651A for hover and pressed states. For a palette, the analogous pair #7F7221 and #2E7F21 stays calm, while #43217F is the loudest partner.

What is #5d7f21 in CMYK for printing?

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

Is #5d7f21 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F7F21; nudged cooler, #3A811F.

Work with #5d7f21 in the Color Lab