#87B331#87B331

#87B331 is a light, vivid yellow-green. Relative luminance 0.376; OKLCH L 71.0% C 0.162 H 126.7°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#87B331
RGBrgb(135, 179, 49)
HSLhsl(80, 57%, 45%)
HSVhsv(80, 73%, 70%)
CMYKcmyk(24.6%, 0%, 72.6%, 29.8%)
CIE-LABlab(67.73, -33.60, 58.03)
CIE-LCHlch(67.73, 67.05, 120.07°)
OKLaboklab(71.04% -0.0966 0.1298)
OKLCHoklch(71.04% 0.162 126.7)
XYZxyz(26.6662, 37.6124, 8.7601)
Luminance0.3761 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87B331 #5D31B3
analogous
#B39E31 #87B331 #46B331
triadic
#87B331 #3187B3 #B33187
tetradic
#87B331 #31B39E #5D31B3 #B33146
square
#87B331 #31B39E #5D31B3 #B33146
split-complementary
#87B331 #3146B3 #9E31B3
monochromatic
#3F5317 #638324 #87B331 #A5D052 #BEDD82

Accessibility & contrast

On white

2.46
#87B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#87B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87B331
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87B331#FFFFFF#000000##000000
##87B3311.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA719
Deuteranopia (green-blind)
#B6A43D
Tritanopia (blue-blind)
#8CAB9A
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #87b331;
/* rgb */ color: rgb(135, 179, 49);
/* oklch */ color: oklch(71.0% 0.162 126.7);
Tailwind
colors: {
  custom: {
    50: '#aeca72',
    500: '#87b331',
    950: '#000000',
  },
}
SCSS
$custom: #87b331;
$custom-light: #aeca72;
$custom-dark: #000000;
JSON
{
  "hex": "#87b331",
  "rgb": {
    "r": 135,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 80.308,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71044,
    "c": 0.16179,
    "h": 126.7
  },
  "luminance": 0.37613
}

Semantic roles & 50–950 ramp

primary
#87B331
secondary
#947AC6
accent
#48E07B
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #87B331

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

Preview Lab → · Contrast checker → · Palette generator →

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