#87B731#87B731

#87B731 is a light, vivid yellow-green. Relative luminance 0.392; OKLCH L 72.0% C 0.167 H 127.6°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#87B731
RGBrgb(135, 183, 49)
HSLhsl(81, 58%, 45%)
HSVhsv(81, 73%, 72%)
CMYKcmyk(26.2%, 0%, 73.2%, 28.2%)
CIE-LABlab(68.92, -35.43, 59.20)
CIE-LCHlch(68.92, 68.99, 120.90°)
OKLaboklab(72.01% -0.1016 0.1322)
OKLCHoklch(72.01% 0.167 127.6)
XYZxyz(27.4796, 39.2390, 9.0313)
Luminance0.3924 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87B731 #6131B7
analogous
#B7A431 #87B731 #44B731
triadic
#87B731 #3187B7 #B73187
tetradic
#87B731 #31B7A4 #6131B7 #B73144
square
#87B731 #31B7A4 #6131B7 #B73144
split-complementary
#87B731 #3144B7 #A431B7
monochromatic
#405617 #638724 #87B731 #A4D154 #BEDE84

Accessibility & contrast

On white

2.37
#87B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#87B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87B731
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87B731#FFFFFF#000000##000000
##87B7311.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA17
Deuteranopia (green-blind)
#BAA73D
Tritanopia (blue-blind)
#8CAF9D
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #87b731;
/* rgb */ color: rgb(135, 183, 49);
/* oklch */ color: oklch(72.0% 0.167 127.6);
Tailwind
colors: {
  custom: {
    50: '#aecd72',
    500: '#87b731',
    950: '#000000',
  },
}
SCSS
$custom: #87b731;
$custom-light: #aecd72;
$custom-dark: #000000;
JSON
{
  "hex": "#87b731",
  "rgb": {
    "r": 135,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 81.493,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7201,
    "c": 0.16677,
    "h": 127.6
  },
  "luminance": 0.3924
}

Semantic roles & 50–950 ramp

primary
#87B731
secondary
#977CC8
accent
#47E17E
background
#FBFCF7
surface
#F6F9ED
border
#D0D2C8
text
#111308
muted
#80827B

Preview Lab

Preview with #87B731

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

Preview Lab → · Contrast checker → · Palette generator →

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