Skip to content

#80971f

a dark, vivid green · warm · closest name: Olive Drab

RGB
128, 151, 31
HSL
72°, 66%, 36%
CMYK
15, 0, 80, 41
Luminance
0.2682

At a glance

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

Hex
#80971f
Hue
72°
green
Saturation
66%
vivid
Lightness
36%
dark
Brightness
59%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2682
WCAG relative
Temperature
Warm
35/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
6.36:1
Closest name
Olive Drab
ΔE2000 5.2
Where it sits
Hue72° of 360°
Saturation66%
Lightness36%
Temperature
Warm ← → Cool35% 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#80971f
RGBrgb(128, 151, 31)
HSLhsl(72, 66%, 36%)
CMYKcmyk(15%, 0%, 80%, 41%)
LABlab(58.8 -24.0 55.5)
LCHlch(58.8 60.4 113.4)
OKLCHoklch(0.637 0.141 120.4)
Decimal8427295
Display P3color(display-p3 0.502 0.592 0.122)

Copy-ready code

/* CSS */
color: #80971f;
background-color: #80971f;
/* Tailwind (arbitrary) */
class="text-[#80971f] bg-[#80971f]"
/* SCSS */
$brand: #80971f;
/* SwiftUI */
Color(red: 0.502, green: 0.592, blue: 0.122)
/* Android */
Color.parseColor("#80971f")
/* Flutter */
Color(0xFF80971F)
/* Python / OpenCV (BGR) */
(31, 151, 128)

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

Accessibility — WCAG contrast

Aa
#80971f on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#80971f on black: 6.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A18E00
deuteranopia · #9E8E2B
tritanopia · #888F81

Color scale — 50 to 950

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

#FAFBF3
#F5F8E8
#EAF1CB
#DEECA2
#CDE273
#BCD945
#ACCB2A
#8FA923
#80971f
#546218
#353D0F
Base = 800Lightest = 50 · #FAFBF3Darkest = 950 · #353D0F
:root {
  --brand-50: #FAFBF3;
  --brand-100: #F5F8E8;
  --brand-200: #EAF1CB;
  --brand-300: #DEECA2;
  --brand-400: #CDE273;
  --brand-500: #BCD945;
  --brand-600: #ACCB2A;
  --brand-700: #8FA923;
  --brand-800: #80971f;
  --brand-900: #546218;
  --brand-950: #353D0F;
  --brand: #80971f;
  --brand-ink: #000000;
}

Colors that work with #80971f

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#F9FAF4
Tinted page background
Border#E4EDC0
Hairlines and dividers
Muted text#8C9B4B
Captions on the surface
Accent#1B239B
Second voice, not a rival
Dark variant#5A6A16
Hover, pressed, headers
Light variant#F7FBEA
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 #80971f

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
  • 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
  • Small text on white — under 4.5:1
  • 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#361F97
Analogous left#97721F
Analogous right#44971F
Split-complement 1#1F4497
Split-complement 2#721F97
Triadic 1#1F8097
Triadic 2#971F80
Tetradic#1F9772

RGB percentages

Red50.2%
Green59.2%
Blue12.2%

CMYK percentages

Cyan15.2%
Magenta0.0%
Yellow79.5%
Key (black)40.8%

Color previews

#80971f text on a black background

contrast 6.36:1

Card sample

#80971f text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #80971f;
Background color
Panel with #80971f background
background-color: #80971f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #80971f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(128, 151, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 151, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #80971f;
background: linear-gradient(135deg, #80971f, #30971F);

Monochromatic scale

Palettes built from #80971f

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.

#80971f 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.

#80971f, answered

What color is #80971f?

#80971f is a dark vivid green, closest to Olive Drab (ΔE2000 5.2). It sits at 72° on the hue wheel with 66% saturation and 36% lightness, which reads as warm.

What is the RGB value of #80971f?

rgb(128, 151, 31) — 128 red, 151 green and 31 blue out of 255, or 50.2% / 59.2% / 12.2% by channel.

Is #80971f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2682 and perceived brightness is 53%, so black text on it reaches 6.36:1.

Should I use black or white text on #80971f?

Black. It scores 6.36:1 against #80971f, versus 3.30:1 for white — AA at any size.

What is the complementary color of #80971f?

#361F97 sits directly opposite on the wheel. Softer options are the split-complements #1F4497 and #721F97, which give the same contrast with far less vibration.

What colors go well with #80971f?

For interface work: #F9FAF4 as the surface, #E4EDC0 for borders, #8C9B4B for secondary text, #1B239B as an accent and #5A6A16 for hover and pressed states. For a palette, the analogous pair #97721F and #44971F stays calm, while #361F97 is the loudest partner.

What is #80971f in CMYK for printing?

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

Is #80971f warm or cool?

Warm — it scores 35 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #97821F; nudged cooler, #54991D.

Work with #80971f in the Color Lab