Skip to content

#5f8f49

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

RGB
95, 143, 73
HSL
101°, 32%, 42%
CMYK
34, 0, 49, 44
Luminance
0.2256

At a glance

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

Hex
#5f8f49
Hue
101°
green
Saturation
32%
soft
Lightness
42%
dark
Brightness
56%
HSV value
Perceived
49%
weighted brightness
Luminance
0.2256
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Green
Tone
Soft
Best ink
Black
5.51:1
Closest name
Olive Drab
ΔE2000 7.3
Where it sits
Hue101° of 360°
Saturation32%
Lightness42%
Temperature
Warm ← → Cool54% 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#5f8f49
RGBrgb(95, 143, 73)
HSLhsl(101, 32%, 42%)
CMYKcmyk(34%, 0%, 49%, 44%)
LABlab(54.6 -29.8 32.0)
LCHlch(54.6 43.7 132.9)
OKLCHoklch(0.599 0.113 136.6)
Decimal6262601
Display P3color(display-p3 0.373 0.561 0.286)

Copy-ready code

/* CSS */
color: #5f8f49;
background-color: #5f8f49;
/* Tailwind (arbitrary) */
class="text-[#5f8f49] bg-[#5f8f49]"
/* SCSS */
$brand: #5f8f49;
/* SwiftUI */
Color(red: 0.373, green: 0.561, blue: 0.286)
/* Android */
Color.parseColor("#5f8f49")
/* Flutter */
Color(0xFF5F8F49)
/* Python / OpenCV (BGR) */
(73, 143, 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 #5f8f49 · 5.51:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.81:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.51:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #5f8f49 as text scores 3.81:1 on white and 5.51:1 on black.

Accessibility — WCAG contrast

Aa
#5f8f49 on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#5f8f49 on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #938543
deuteranopia · #8C814D
tritanopia · #5D8B7F

Color scale — 50 to 950

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

#F7F9F5
#EEF4EC
#DAE7D4
#C0D9B5
#A1C690
#81B36A
#6CA253
#5f8f49
#486C37
#364F2B
#22321B
Base = 700Lightest = 50 · #F7F9F5Darkest = 950 · #22321B
:root {
  --brand-50: #F7F9F5;
  --brand-100: #EEF4EC;
  --brand-200: #DAE7D4;
  --brand-300: #C0D9B5;
  --brand-400: #A1C690;
  --brand-500: #81B36A;
  --brand-600: #6CA253;
  --brand-700: #5f8f49;
  --brand-800: #486C37;
  --brand-900: #364F2B;
  --brand-950: #22321B;
  --brand: #5f8f49;
  --brand-ink: #000000;
}

Colors that work with #5f8f49

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#F6FAF5
Tinted page background
Border#D1E3C9
Hairlines and dividers
Muted text#65984E
Captions on the surface
Accent#674593
Second voice, not a rival
Dark variant#38542B
Hover, pressed, headers
Light variant#F1F6EE
Selected rows, tints
Dark surface#192414
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 #5f8f49

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#79498F
Analogous left#828F49
Analogous right#498F56
Split-complement 1#56498F
Split-complement 2#8F4982
Triadic 1#495F8F
Triadic 2#8F495F
Tetradic#49828F

RGB percentages

Red37.3%
Green56.1%
Blue28.6%

CMYK percentages

Cyan33.6%
Magenta0.0%
Yellow49.0%
Key (black)43.9%

Color previews

#5f8f49 text on a black background

contrast 5.51:1

Card sample

#5f8f49 text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 143, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 143, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f8f49;
background: linear-gradient(135deg, #5f8f49, #498F62);

Monochromatic scale

Palettes built from #5f8f49

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.

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

#5f8f49, answered

What color is #5f8f49?

#5f8f49 is a dark soft green, closest to Olive Drab (ΔE2000 7.3). It sits at 101° on the hue wheel with 32% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #5f8f49?

rgb(95, 143, 73) — 95 red, 143 green and 73 blue out of 255, or 37.3% / 56.1% / 28.6% by channel.

Is #5f8f49 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2256 and perceived brightness is 49%, so black text on it reaches 5.51:1.

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

Black. It scores 5.51:1 against #5f8f49, versus 3.81:1 for white — AA at any size.

What is the complementary color of #5f8f49?

#79498F sits directly opposite on the wheel. Softer options are the split-complements #56498F and #8F4982, which give the same contrast with far less vibration.

What colors go well with #5f8f49?

For interface work: #F6FAF5 as the surface, #D1E3C9 for borders, #65984E for secondary text, #674593 as an accent and #38542B for hover and pressed states. For a palette, the analogous pair #828F49 and #498F56 stays calm, while #79498F is the loudest partner.

What is #5f8f49 in CMYK for printing?

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

Is #5f8f49 warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #798F49; nudged cooler, #47914B.

Work with #5f8f49 in the Color Lab