Skip to content

#5f7708

a deep, electric green · warm · closest name: Dark Olive Green

RGB
95, 119, 8
HSL
73°, 87%, 25%
CMYK
20, 0, 93, 53
Luminance
0.1564

At a glance

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

Hex
#5f7708
Hue
73°
green
Saturation
87%
electric
Lightness
25%
deep
Brightness
47%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1564
WCAG relative
Temperature
Warm
36/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.09:1
Closest name
Dark Olive Green
ΔE2000 8
Where it sits
Hue73° of 360°
Saturation87%
Lightness25%
Temperature
Warm ← → Cool36% cool

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

Every format

HEX#5f7708
RGBrgb(95, 119, 8)
HSLhsl(73, 87%, 25%)
CMYKcmyk(20%, 0%, 93%, 53%)
LABlab(46.5 -23.1 49.8)
LCHlch(46.5 54.9 114.9)
OKLCHoklch(0.531 0.127 122.7)
Decimal6256392
Display P3color(display-p3 0.373 0.467 0.031)

Copy-ready code

/* CSS */
color: #5f7708;
background-color: #5f7708;
/* Tailwind (arbitrary) */
class="text-[#5f7708] bg-[#5f7708]"
/* SCSS */
$brand: #5f7708;
/* SwiftUI */
Color(red: 0.373, green: 0.467, blue: 0.031)
/* Android */
Color.parseColor("#5f7708")
/* Flutter */
Color(0xFF5F7708)
/* Python / OpenCV (BGR) */
(8, 119, 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#ffffff on #5f7708 · 5.09:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.09:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.13:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5f7708 as text scores 5.09:1 on white and 4.13:1 on black.

Accessibility — WCAG contrast

Aa
#5f7708 on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#5f7708 on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7F6F00
deuteranopia · #7C6E18
tritanopia · #657065

Color scale — 50 to 950

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

#FAFDF2
#F6FAE5
#ECF8C4
#E3F896
#D5F461
#C6F12D
#B7E50F
#99BF0D
#7A990A
#5f7708
#384507
Base = 900Lightest = 50 · #FAFDF2Darkest = 950 · #384507
:root {
  --brand-50: #FAFDF2;
  --brand-100: #F6FAE5;
  --brand-200: #ECF8C4;
  --brand-300: #E3F896;
  --brand-400: #D5F461;
  --brand-500: #C6F12D;
  --brand-600: #B7E50F;
  --brand-700: #99BF0D;
  --brand-800: #7A990A;
  --brand-900: #5f7708;
  --brand-950: #384507;
  --brand: #5f7708;
  --brand-ink: #ffffff;
}

Colors that work with #5f7708

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#F9FAF4
Tinted page background
Border#E3EDC0
Hairlines and dividers
Muted text#8A9B4B
Captions on the surface
Accent#05097A
Second voice, not a rival
Dark variant#5F7708
Hover, pressed, headers
Light variant#F9FDE7
Selected rows, tints
Dark surface#212414
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 #5f7708

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

Works well for
  • Body text and links on white
  • 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#200877
Analogous left#775808
Analogous right#277708
Split-complement 1#082777
Split-complement 2#580877
Triadic 1#085F77
Triadic 2#77085F
Tetradic#087758

RGB percentages

Red37.3%
Green46.7%
Blue3.1%

CMYK percentages

Cyan20.2%
Magenta0.0%
Yellow93.3%
Key (black)53.3%

Color previews

#5f7708 text on a black background

contrast 4.13:1

Card sample

#5f7708 text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f7708

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.

#5f7708 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#5f7708, answered

What color is #5f7708?

#5f7708 is a deep electric green, closest to Dark Olive Green (ΔE2000 8). It sits at 73° on the hue wheel with 87% saturation and 25% lightness, which reads as warm.

What is the RGB value of #5f7708?

rgb(95, 119, 8) — 95 red, 119 green and 8 blue out of 255, or 37.3% / 46.7% / 3.1% by channel.

Is #5f7708 a light or a dark color?

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

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

White. It scores 5.09:1 against #5f7708, versus 4.13:1 for black — AA at any size.

What is the complementary color of #5f7708?

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

What colors go well with #5f7708?

For interface work: #F9FAF4 as the surface, #E3EDC0 for borders, #8A9B4B for secondary text, #05097A as an accent and #5F7708 for hover and pressed states. For a palette, the analogous pair #775808 and #277708 stays calm, while #200877 is the loudest partner.

What is #5f7708 in CMYK for printing?

cmyk(20%, 0%, 93%, 53%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #5f7708 warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #776608; nudged cooler, #367807.

Work with #5f7708 in the Color Lab