Skip to content

#87af3c

a balanced, vivid green · neutral · closest name: Yellow Green

RGB
135, 175, 60
HSL
81°, 49%, 46%
CMYK
23, 0, 66, 31
Luminance
0.3614

At a glance

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

Hex
#87af3c
Hue
81°
green
Saturation
49%
vivid
Lightness
46%
balanced
Brightness
69%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3614
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
8.23:1
Closest name
Yellow Green
ΔE2000 8.4
Where it sits
Hue81° of 360°
Saturation49%
Lightness46%
Temperature
Warm ← → Cool42% 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#87af3c
RGBrgb(135, 175, 60)
HSLhsl(81, 49%, 46%)
CMYKcmyk(23%, 0%, 66%, 31%)
LABlab(66.6 -31.0 52.6)
LCHlch(66.6 61.1 120.5)
OKLCHoklch(0.702 0.149 126.4)
Decimal8892220
Display P3color(display-p3 0.529 0.686 0.235)

Copy-ready code

/* CSS */
color: #87af3c;
background-color: #87af3c;
/* Tailwind (arbitrary) */
class="text-[#87af3c] bg-[#87af3c]"
/* SCSS */
$brand: #87af3c;
/* SwiftUI */
Color(red: 0.529, green: 0.686, blue: 0.235)
/* Android */
Color.parseColor("#87af3c")
/* Flutter */
Color(0xFF87AF3C)
/* Python / OpenCV (BGR) */
(60, 175, 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 #87af3c · 8.23:1
Use #000000AAA at every size.
Aa
White text · 2.55:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.23:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #87af3c as text scores 2.55:1 on white and 8.23:1 on black.

Accessibility — WCAG contrast

Aa
#87af3c on white: 2.55:1
AA ✗ fail · AA-large · AAA
Aa
#87af3c on black: 8.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B8A42D
deuteranopia · #B2A145
tritanopia · #8CA797

Color scale — 50 to 950

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

#F8FAF4
#F1F6EA
#E2ECD0
#CFE2AB
#B7D482
#9FC658
#87af3c
#759834
#5E7A2A
#465922
#2B3715
Base = 600Lightest = 50 · #F8FAF4Darkest = 950 · #2B3715
:root {
  --brand-50: #F8FAF4;
  --brand-100: #F1F6EA;
  --brand-200: #E2ECD0;
  --brand-300: #CFE2AB;
  --brand-400: #B7D482;
  --brand-500: #9FC658;
  --brand-600: #87af3c;
  --brand-700: #759834;
  --brand-800: #5E7A2A;
  --brand-900: #465922;
  --brand-950: #2B3715;
  --brand: #87af3c;
  --brand-ink: #000000;
}

Colors that work with #87af3c

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#F8FAF4
Tinted page background
Border#DCEAC2
Hairlines and dividers
Muted text#7F9B4B
Captions on the surface
Accent#4437B4
Second voice, not a rival
Dark variant#495F21
Hover, pressed, headers
Light variant#F4F8EC
Selected rows, tints
Dark surface#1F2414
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 #87af3c

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
  • 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
  • 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#643CAF
Analogous left#AF9E3C
Analogous right#4EAF3C
Split-complement 1#3C4EAF
Split-complement 2#9E3CAF
Triadic 1#3C87AF
Triadic 2#AF3C87
Tetradic#3CAF9E

RGB percentages

Red52.9%
Green68.6%
Blue23.5%

CMYK percentages

Cyan22.9%
Magenta0.0%
Yellow65.7%
Key (black)31.4%

Color previews

#87af3c text on a black background

contrast 8.23:1

Card sample

#87af3c text on a white background

contrast 2.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(135, 175, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 175, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #87af3c;
background: linear-gradient(135deg, #87af3c, #3CAF3E);

Monochromatic scale

Palettes built from #87af3c

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.

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

#87af3c, answered

What color is #87af3c?

#87af3c is a balanced vivid green, closest to Yellow Green (ΔE2000 8.4). It sits at 81° on the hue wheel with 49% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #87af3c?

rgb(135, 175, 60) — 135 red, 175 green and 60 blue out of 255, or 52.9% / 68.6% / 23.5% by channel.

Is #87af3c a light or a dark color?

It is a mid-tone. Relative luminance is 0.3614 and perceived brightness is 61%, so black text on it reaches 8.23:1.

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

Black. It scores 8.23:1 against #87af3c, versus 2.55:1 for white — AAA at any size.

What is the complementary color of #87af3c?

#643CAF sits directly opposite on the wheel. Softer options are the split-complements #3C4EAF and #9E3CAF, which give the same contrast with far less vibration.

What colors go well with #87af3c?

For interface work: #F8FAF4 as the surface, #DCEAC2 for borders, #7F9B4B for secondary text, #4437B4 as an accent and #495F21 for hover and pressed states. For a palette, the analogous pair #AF9E3C and #4EAF3C stays calm, while #643CAF is the loudest partner.

What is #87af3c in CMYK for printing?

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

Is #87af3c warm or cool?

Neutral — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AFAD3C; nudged cooler, #5CB13A.

Work with #87af3c in the Color Lab