Skip to content

#5b7708

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

RGB
91, 119, 8
HSL
75°, 87%, 25%
CMYK
24, 0, 93, 53
Luminance
0.1544

At a glance

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

Hex
#5b7708
Hue
75°
green
Saturation
87%
electric
Lightness
25%
deep
Brightness
47%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1544
WCAG relative
Temperature
Warm
38/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.14:1
Closest name
Dark Olive Green
ΔE2000 7.7
Where it sits
Hue75° of 360°
Saturation87%
Lightness25%
Temperature
Warm ← → Cool38% 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#5b7708
RGBrgb(91, 119, 8)
HSLhsl(75, 87%, 25%)
CMYKcmyk(24%, 0%, 93%, 53%)
LABlab(46.2 -24.9 49.5)
LCHlch(46.2 55.4 116.7)
OKLCHoklch(0.528 0.129 124.6)
Decimal5994248
Display P3color(display-p3 0.357 0.467 0.031)

Copy-ready code

/* CSS */
color: #5b7708;
background-color: #5b7708;
/* Tailwind (arbitrary) */
class="text-[#5b7708] bg-[#5b7708]"
/* SCSS */
$brand: #5b7708;
/* SwiftUI */
Color(red: 0.357, green: 0.467, blue: 0.031)
/* Android */
Color.parseColor("#5b7708")
/* Flutter */
Color(0xFF5B7708)
/* Python / OpenCV (BGR) */
(8, 119, 91)

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

Accessibility — WCAG contrast

Aa
#5b7708 on white: 5.14:1
AA ✓ pass · AA-large · AAA
Aa
#5b7708 on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7E6E00
deuteranopia · #7B6D18
tritanopia · #607164

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5b7708 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
#F5FAE5
#EBF8C4
#DFF896
#CFF461
#C0F12D
#B0E50F
#92BF0D
#75990A
#5b7708
#364507
Base = 900Lightest = 50 · #FAFDF2Darkest = 950 · #364507
:root {
  --brand-50: #FAFDF2;
  --brand-100: #F5FAE5;
  --brand-200: #EBF8C4;
  --brand-300: #DFF896;
  --brand-400: #CFF461;
  --brand-500: #C0F12D;
  --brand-600: #B0E50F;
  --brand-700: #92BF0D;
  --brand-800: #75990A;
  --brand-900: #5b7708;
  --brand-950: #364507;
  --brand: #5b7708;
  --brand-ink: #ffffff;
}

Colors that work with #5b7708

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#E1EDC0
Hairlines and dividers
Muted text#879B4B
Captions on the surface
Accent#06057A
Second voice, not a rival
Dark variant#5B7708
Hover, pressed, headers
Light variant#F8FDE7
Selected rows, tints
Dark surface#202414
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 #5b7708

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#240877
Analogous left#775B08
Analogous right#247708
Split-complement 1#082477
Split-complement 2#5B0877
Triadic 1#085B77
Triadic 2#77085B
Tetradic#08775B

RGB percentages

Red35.7%
Green46.7%
Blue3.1%

CMYK percentages

Cyan23.5%
Magenta0.0%
Yellow93.3%
Key (black)53.3%

Color previews

#5b7708 text on a black background

contrast 4.09:1

Card sample

#5b7708 text on a white background

contrast 5.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b7708

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.

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

#5b7708, answered

What color is #5b7708?

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

What is the RGB value of #5b7708?

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

Is #5b7708 a light or a dark color?

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

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

White. It scores 5.14:1 against #5b7708, versus 4.09:1 for black — AA at any size.

What is the complementary color of #5b7708?

#240877 sits directly opposite on the wheel. Softer options are the split-complements #082477 and #5B0877, which give the same contrast with far less vibration.

What colors go well with #5b7708?

For interface work: #F9FAF4 as the surface, #E1EDC0 for borders, #879B4B for secondary text, #06057A as an accent and #5B7708 for hover and pressed states. For a palette, the analogous pair #775B08 and #247708 stays calm, while #240877 is the loudest partner.

What is #5b7708 in CMYK for printing?

cmyk(24%, 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 #5b7708 warm or cool?

Warm — it scores 38 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #776A08; nudged cooler, #327807.

Work with #5b7708 in the Color Lab