Skip to content

#5f8024

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

RGB
95, 128, 36
HSL
82°, 56%, 32%
CMYK
26, 0, 72, 50
Luminance
0.1800

At a glance

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

Hex
#5f8024
Hue
82°
green
Saturation
56%
vivid
Lightness
32%
dark
Brightness
50%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1800
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
4.60:1
Closest name
Olive Drab
ΔE2000 5.4
Where it sits
Hue82° of 360°
Saturation56%
Lightness32%
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#5f8024
RGBrgb(95, 128, 36)
HSLhsl(82, 56%, 32%)
CMYKcmyk(26%, 0%, 72%, 50%)
LABlab(49.5 -26.3 43.9)
LCHlch(49.5 51.2 120.9)
OKLCHoklch(0.556 0.124 127.2)
Decimal6258724
Display P3color(display-p3 0.373 0.502 0.141)

Copy-ready code

/* CSS */
color: #5f8024;
background-color: #5f8024;
/* Tailwind (arbitrary) */
class="text-[#5f8024] bg-[#5f8024]"
/* SCSS */
$brand: #5f8024;
/* SwiftUI */
Color(red: 0.373, green: 0.502, blue: 0.141)
/* Android */
Color.parseColor("#5f8024")
/* Flutter */
Color(0xFF5F8024)
/* Python / OpenCV (BGR) */
(36, 128, 95)

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

Accessibility — WCAG contrast

Aa
#5f8024 on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#5f8024 on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #877715
deuteranopia · #82752C
tritanopia · #637A6E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5f8024 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
#F2F6E9
#E2EECD
#D0E6A7
#B8DA7C
#A1CE50
#8EBF36
#769F2D
#5f8024
#465D1E
#2C3A13
Base = 800Lightest = 50 · #F8FBF4Darkest = 950 · #2C3A13
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F2F6E9;
  --brand-200: #E2EECD;
  --brand-300: #D0E6A7;
  --brand-400: #B8DA7C;
  --brand-500: #A1CE50;
  --brand-600: #8EBF36;
  --brand-700: #769F2D;
  --brand-800: #5f8024;
  --brand-900: #465D1E;
  --brand-950: #2C3A13;
  --brand: #5f8024;
  --brand-ink: #000000;
}

Colors that work with #5f8024

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8FAF4
Tinted page background
Border#DDEDC0
Hairlines and dividers
Muted text#7E9B4B
Captions on the surface
Accent#2B2183
Second voice, not a rival
Dark variant#4A641C
Hover, pressed, headers
Light variant#F4F9EB
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 #5f8024

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#452480
Analogous left#807324
Analogous right#318024
Split-complement 1#243180
Split-complement 2#732480
Triadic 1#245F80
Triadic 2#80245F
Tetradic#248073

RGB percentages

Red37.3%
Green50.2%
Blue14.1%

CMYK percentages

Cyan25.8%
Magenta0.0%
Yellow71.9%
Key (black)49.8%

Color previews

#5f8024 text on a black background

contrast 4.60:1

Card sample

#5f8024 text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 128, 36, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 128, 36, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f8024;
background: linear-gradient(135deg, #5f8024, #248026);

Monochromatic scale

Palettes built from #5f8024

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.

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

#5f8024, answered

What color is #5f8024?

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

What is the RGB value of #5f8024?

rgb(95, 128, 36) — 95 red, 128 green and 36 blue out of 255, or 37.3% / 50.2% / 14.1% by channel.

Is #5f8024 a light or a dark color?

It is a dark color. Relative luminance is 0.1800 and perceived brightness is 44%, so black text on it reaches 4.60:1.

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

Black. It scores 4.60:1 against #5f8024, versus 4.57:1 for white — AA at any size.

What is the complementary color of #5f8024?

#452480 sits directly opposite on the wheel. Softer options are the split-complements #243180 and #732480, which give the same contrast with far less vibration.

What colors go well with #5f8024?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #7E9B4B for secondary text, #2B2183 as an accent and #4A641C for hover and pressed states. For a palette, the analogous pair #807324 and #318024 stays calm, while #452480 is the loudest partner.

What is #5f8024 in CMYK for printing?

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

Is #5f8024 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 #807F24; nudged cooler, #3D8222.

Work with #5f8024 in the Color Lab