Skip to content

#4f7b39

a dark, soft green · neutral · closest name: Dark Olive Green

RGB
79, 123, 57
HSL
100°, 37%, 35%
CMYK
36, 0, 54, 52
Luminance
0.1612

At a glance

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

Hex
#4f7b39
Hue
100°
green
Saturation
37%
soft
Lightness
35%
dark
Brightness
48%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1612
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Green
Tone
Soft
Best ink
White
4.97:1
Closest name
Dark Olive Green
ΔE2000 6.6
Where it sits
Hue100° of 360°
Saturation37%
Lightness35%
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#4f7b39
RGBrgb(79, 123, 57)
HSLhsl(100, 37%, 35%)
CMYKcmyk(36%, 0%, 54%, 52%)
LABlab(47.1 -28.1 31.1)
LCHlch(47.1 41.9 132.1)
OKLCHoklch(0.535 0.107 136.2)
Decimal5208889
Display P3color(display-p3 0.310 0.482 0.224)

Copy-ready code

/* CSS */
color: #4f7b39;
background-color: #4f7b39;
/* Tailwind (arbitrary) */
class="text-[#4f7b39] bg-[#4f7b39]"
/* SCSS */
$brand: #4f7b39;
/* SwiftUI */
Color(red: 0.310, green: 0.482, blue: 0.224)
/* Android */
Color.parseColor("#4f7b39")
/* Flutter */
Color(0xFF4F7B39)
/* Python / OpenCV (BGR) */
(57, 123, 79)

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

Accessibility — WCAG contrast

Aa
#4f7b39 on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#4f7b39 on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7F7233
deuteranopia · #796E3D
tritanopia · #4E776C

Color scale — 50 to 950

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

#F7FAF5
#EEF4EB
#DAE9D3
#C0DBB2
#A1CA8C
#81B866
#6BA74D
#5A8B41
#4f7b39
#365229
#223319
Base = 800Lightest = 50 · #F7FAF5Darkest = 950 · #223319
:root {
  --brand-50: #F7FAF5;
  --brand-100: #EEF4EB;
  --brand-200: #DAE9D3;
  --brand-300: #C0DBB2;
  --brand-400: #A1CA8C;
  --brand-500: #81B866;
  --brand-600: #6BA74D;
  --brand-700: #5A8B41;
  --brand-800: #4f7b39;
  --brand-900: #365229;
  --brand-950: #223319;
  --brand: #4f7b39;
  --brand-ink: #ffffff;
}

Colors that work with #4f7b39

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#F6FAF5
Tinted page background
Border#D1E5C7
Hairlines and dividers
Muted text#659B4B
Captions on the surface
Accent#54357F
Second voice, not a rival
Dark variant#385728
Hover, pressed, headers
Light variant#F1F7EE
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 #4f7b39

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#65397B
Analogous left#707B39
Analogous right#397B44
Split-complement 1#44397B
Split-complement 2#7B3970
Triadic 1#394F7B
Triadic 2#7B394F
Tetradic#39707B

RGB percentages

Red31.0%
Green48.2%
Blue22.4%

CMYK percentages

Cyan35.8%
Magenta0.0%
Yellow53.7%
Key (black)51.8%

Color previews

#4f7b39 text on a black background

contrast 4.22:1

Card sample

#4f7b39 text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f7b39;
Background color
Panel with #4f7b39 background
background-color: #4f7b39;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4f7b39;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(79, 123, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 123, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f7b39;
background: linear-gradient(135deg, #4f7b39, #397B4F);

Monochromatic scale

Palettes built from #4f7b39

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.

#4f7b39 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.

#4f7b39, answered

What color is #4f7b39?

#4f7b39 is a dark soft green, closest to Dark Olive Green (ΔE2000 6.6). It sits at 100° on the hue wheel with 37% saturation and 35% lightness, which reads as neutral.

What is the RGB value of #4f7b39?

rgb(79, 123, 57) — 79 red, 123 green and 57 blue out of 255, or 31% / 48.2% / 22.4% by channel.

Is #4f7b39 a light or a dark color?

It is a dark color. Relative luminance is 0.1612 and perceived brightness is 41%, so white text on it reaches 4.97:1.

Should I use black or white text on #4f7b39?

White. It scores 4.97:1 against #4f7b39, versus 4.22:1 for black — AA at any size.

What is the complementary color of #4f7b39?

#65397B sits directly opposite on the wheel. Softer options are the split-complements #44397B and #7B3970, which give the same contrast with far less vibration.

What colors go well with #4f7b39?

For interface work: #F6FAF5 as the surface, #D1E5C7 for borders, #659B4B for secondary text, #54357F as an accent and #385728 for hover and pressed states. For a palette, the analogous pair #707B39 and #397B44 stays calm, while #65397B is the loudest partner.

What is #4f7b39 in CMYK for printing?

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

Is #4f7b39 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 #677B39; nudged cooler, #377D3A.

Work with #4f7b39 in the Color Lab