#5f8f49
a dark, soft green · neutral · closest name: Olive Drab
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.
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 |
| RGB | rgb(95, 143, 73) |
| HSL | hsl(101, 32%, 42%) |
| CMYK | cmyk(34%, 0%, 49%, 44%) |
| LAB | lab(54.6 -29.8 32.0) |
| LCH | lch(54.6 43.7 132.9) |
| OKLCH | oklch(0.599 0.113 136.6) |
| Decimal | 6262601 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #5f8f49
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #828F49 | Neighbour, quieter | |
| Analogous right | #498F56 | Neighbour, quieter | |
| Split-complement 1 | #56498F | Contrast without the clash | |
| Split-complement 2 | #8F4982 | Contrast without the clash | |
| Triadic 1 | #495F8F | Even thirds — balanced and loud | |
| Triadic 2 | #8F495F | Even thirds — balanced and loud | |
| Tetradic | #49828F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#5f8f49 text on a black background
contrast 5.51:1
#5f8f49 text on a white background
contrast 3.81:1
CSS3 live lab
The quick brown fox
color: #5f8f49;
background-color: #5f8f49;
Glowing headline
text-shadow: 2px 2px 8px #5f8f49;
Soft neon halo
text-shadow: 0 0 14px rgba(95, 143, 73, 0.45);
box-shadow: 0 12px 32px -8px rgba(95, 143, 73, 0.45);
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.
Closest color with a full write-up: Forest Green (#228b22) — ΔE2000 8 away, with its history, psychology and brand usage.
#5f8f49 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.