Skip to content

#87a821

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

RGB
135, 168, 33
HSL
75°, 67%, 39%
CMYK
20, 0, 80, 34
Luminance
0.3327

At a glance

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

Hex
#87a821
Hue
75°
green
Saturation
67%
vivid
Lightness
39%
dark
Brightness
66%
HSV value
Perceived
58%
weighted brightness
Luminance
0.3327
WCAG relative
Temperature
Warm
37/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
7.65:1
Closest name
Olive Drab
ΔE2000 9.2
Where it sits
Hue75° of 360°
Saturation67%
Lightness39%
Temperature
Warm ← → Cool37% 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#87a821
RGBrgb(135, 168, 33)
HSLhsl(75, 67%, 39%)
CMYKcmyk(20%, 0%, 80%, 34%)
LABlab(64.4 -29.2 60.1)
LCHlch(64.4 66.8 115.9)
OKLCHoklch(0.683 0.157 123.2)
Decimal8890401
Display P3color(display-p3 0.529 0.659 0.129)

Copy-ready code

/* CSS */
color: #87a821;
background-color: #87a821;
/* Tailwind (arbitrary) */
class="text-[#87a821] bg-[#87a821]"
/* SCSS */
$brand: #87a821;
/* SwiftUI */
Color(red: 0.529, green: 0.659, blue: 0.129)
/* Android */
Color.parseColor("#87a821")
/* Flutter */
Color(0xFF87A821)
/* Python / OpenCV (BGR) */
(33, 168, 135)

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 #87a821 · 7.65:1
Use #000000AAA at every size.
Aa
White text · 2.74:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.65:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #87a821 as text scores 2.74:1 on white and 7.65:1 on black.

Accessibility — WCAG contrast

Aa
#87a821 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#87a821 on black: 7.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B29D00
deuteranopia · #AE9C2F
tritanopia · #8E9F8F

Color scale — 50 to 950

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

#F9FBF3
#F4F8E8
#E8F1CA
#DAEDA1
#C8E372
#B5DA43
#A4CD28
#87a821
#6E881B
#506317
#323E0F
Base = 700Lightest = 50 · #F9FBF3Darkest = 950 · #323E0F
:root {
  --brand-50: #F9FBF3;
  --brand-100: #F4F8E8;
  --brand-200: #E8F1CA;
  --brand-300: #DAEDA1;
  --brand-400: #C8E372;
  --brand-500: #B5DA43;
  --brand-600: #A4CD28;
  --brand-700: #87a821;
  --brand-800: #6E881B;
  --brand-900: #506317;
  --brand-950: #323E0F;
  --brand: #87a821;
  --brand-ink: #000000;
}

Colors that work with #87a821

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#E2EDC0
Hairlines and dividers
Muted text#879B4B
Captions on the surface
Accent#1D1EAC
Second voice, not a rival
Dark variant#566B15
Hover, pressed, headers
Light variant#F7FBEA
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 #87a821

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#4221A8
Analogous left#A88621
Analogous right#43A821
Split-complement 1#2143A8
Split-complement 2#8621A8
Triadic 1#2187A8
Triadic 2#A82187
Tetradic#21A886

RGB percentages

Red52.9%
Green65.9%
Blue12.9%

CMYK percentages

Cyan19.6%
Magenta0.0%
Yellow80.4%
Key (black)34.1%

Color previews

#87a821 text on a black background

contrast 7.65:1

Card sample

#87a821 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #87a821;
Background color
Panel with #87a821 background
background-color: #87a821;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #87a821;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(135, 168, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 168, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #87a821;
background: linear-gradient(135deg, #87a821, #2DA821);

Monochromatic scale

Palettes built from #87a821

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.

#87a821 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.

#87a821, answered

What color is #87a821?

#87a821 is a dark vivid green, closest to Olive Drab (ΔE2000 9.2). It sits at 75° on the hue wheel with 67% saturation and 39% lightness, which reads as warm.

What is the RGB value of #87a821?

rgb(135, 168, 33) — 135 red, 168 green and 33 blue out of 255, or 52.9% / 65.9% / 12.9% by channel.

Is #87a821 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3327 and perceived brightness is 58%, so black text on it reaches 7.65:1.

Should I use black or white text on #87a821?

Black. It scores 7.65:1 against #87a821, versus 2.74:1 for white — AAA at any size.

What is the complementary color of #87a821?

#4221A8 sits directly opposite on the wheel. Softer options are the split-complements #2143A8 and #8621A8, which give the same contrast with far less vibration.

What colors go well with #87a821?

For interface work: #F9FAF4 as the surface, #E2EDC0 for borders, #879B4B for secondary text, #1D1EAC as an accent and #566B15 for hover and pressed states. For a palette, the analogous pair #A88621 and #43A821 stays calm, while #4221A8 is the loudest partner.

What is #87a821 in CMYK for printing?

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

Is #87a821 warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A89821; nudged cooler, #55AA1F.

Work with #87a821 in the Color Lab