#87B41F#87B41F

#87B41F is a light, vivid yellow-green. Relative luminance 0.379; OKLCH L 71.2% C 0.172 H 126.1°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#87B41F
RGBrgb(135, 180, 31)
HSLhsl(78, 71%, 41%)
HSVhsv(78, 83%, 71%)
CMYKcmyk(25%, 0%, 82.8%, 29.4%)
CIE-LABlab(67.94, -34.92, 63.81)
CIE-LCHlch(67.94, 72.74, 118.69°)
OKLaboklab(71.18% -0.1015 0.1391)
OKLCHoklch(71.18% 0.172 126.1)
XYZxyz(26.5604, 37.8919, 7.2106)
Luminance0.3789 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87B41F #4C1FB4
analogous
#B4971F #87B41F #3DB41F
triadic
#87B41F #1F87B4 #B41F87
tetradic
#87B41F #1FB497 #4C1FB4 #B41F3D
square
#87B41F #1FB497 #4C1FB4 #B41F3D
split-complementary
#87B41F #1F3DB4 #971FB4
monochromatic
#394C0D #608016 #87B41F #A9DC34 #BFE568

Accessibility & contrast

On white

2.45
#87B41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#87B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87B41F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87B41F#FFFFFF#000000##000000
##87B41F1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#B8A530
Tritanopia (blue-blind)
#8DAB9A
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #87b41f;
/* rgb */ color: rgb(135, 180, 31);
/* oklch */ color: oklch(71.2% 0.172 126.1);
Tailwind
colors: {
  custom: {
    50: '#aeca6a',
    500: '#87b41f',
    950: '#000000',
  },
}
SCSS
$custom: #87b41f;
$custom-light: #aeca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#87b41f",
  "rgb": {
    "r": 135,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 78.121,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.1722,
    "h": 126.1
  },
  "luminance": 0.37892
}

Semantic roles & 50–950 ramp

primary
#87B41F
secondary
#8364CB
accent
#3AED70
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111307
muted
#80827A

Preview Lab

Preview with #87B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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