#87A51F#87A51F

#87A51F is a light, vivid yellow-green. Relative luminance 0.322; OKLCH L 67.6% C 0.154 H 122.2°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#87A51F
RGBrgb(135, 165, 31)
HSLhsl(73, 68%, 38%)
HSVhsv(73, 81%, 65%)
CMYKcmyk(18.2%, 0%, 81.2%, 35.3%)
CIE-LABlab(63.47, -27.88, 59.85)
CIE-LCHlch(63.47, 66.03, 114.98°)
OKLaboklab(67.57% -0.0824 0.1307)
OKLCHoklch(67.57% 0.154 122.2)
XYZxyz(23.6945, 32.1600, 6.2553)
Luminance0.3216 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87A51F #3D1FA5
analogous
#A5801F #87A51F #44A51F
triadic
#87A51F #1F87A5 #A51F87
tetradic
#87A51F #1FA580 #3D1FA5 #A51F44
square
#87A51F #1FA580 #3D1FA5 #A51F44
split-complementary
#87A51F #1F44A5 #801FA5
monochromatic
#333E0C #5D7115 #87A51F #B0D72A #C3E15E

Accessibility & contrast

On white

2.83
#87A51F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#87A51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87A51F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87A51F#FFFFFF#000000##000000
##87A51F1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A00
Deuteranopia (green-blind)
#AB9A2D
Tritanopia (blue-blind)
#8F9C8D
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #87a51f;
/* rgb */ color: rgb(135, 165, 31);
/* oklch */ color: oklch(67.6% 0.154 122.2);
Tailwind
colors: {
  custom: {
    50: '#aebf68',
    500: '#87a51f',
    950: '#000000',
  },
}
SCSS
$custom: #87a51f;
$custom-light: #aebf68;
$custom-dark: #000000;
JSON
{
  "hex": "#87a51f",
  "rgb": {
    "r": 135,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 73.433,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.67566,
    "c": 0.15447,
    "h": 122.2
  },
  "luminance": 0.3216
}

Semantic roles & 50–950 ramp

primary
#87A51F
secondary
#735BC5
accent
#3DEB64
background
#FBFBF6
surface
#F6F7EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #87A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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