#87B040#87B040

#87B040 is a light, vivid yellow-green. Relative luminance 0.366; OKLCH L 70.4% C 0.147 H 127.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#87B040
RGBrgb(135, 176, 64)
HSLhsl(82, 47%, 47%)
HSVhsv(82, 64%, 69%)
CMYKcmyk(23.3%, 0%, 63.6%, 31%)
CIE-LABlab(66.95, -31.16, 51.27)
CIE-LCHlch(66.95, 59.99, 121.29°)
OKLaboklab(70.45% -0.0886 0.1177)
OKLCHoklch(70.45% 0.147 127)
XYZxyz(26.4424, 36.5713, 10.5153)
Luminance0.3657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87B040 #6940B0
analogous
#B0A140 #87B040 #4FB040
triadic
#87B040 #4087B0 #B04087
tetradic
#87B040 #40B0A1 #6940B0 #B0404F
square
#87B040 #40B0A1 #6940B0 #B0404F
split-complementary
#87B040 #404FB0 #A140B0
monochromatic
#42561F #658330 #87B040 #A4C766 #BED893

Accessibility & contrast

On white

2.53
#87B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#87B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87B040
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87B040#FFFFFF#000000##000000
##87B0401.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A532
Deuteranopia (green-blind)
#B3A248
Tritanopia (blue-blind)
#8CA899
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #87b040;
/* rgb */ color: rgb(135, 176, 64);
/* oklch */ color: oklch(70.4% 0.147 127.0);
Tailwind
colors: {
  custom: {
    50: '#adc77a',
    500: '#87b040',
    950: '#000000',
  },
}
SCSS
$custom: #87b040;
$custom-light: #adc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#87b040",
  "rgb": {
    "r": 135,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 81.964,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.70448,
    "c": 0.14731,
    "h": 127
  },
  "luminance": 0.36572
}

Semantic roles & 50–950 ramp

primary
#87B040
secondary
#9E89C3
accent
#51D682
background
#FAFCF7
surface
#F5F8EE
border
#CFD1C9
text
#101309
muted
#7F827B

Preview Lab

Preview with #87B040

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#87B040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva