#87AF2C#87AF2C

#87AF2C is a light, vivid yellow-green. Relative luminance 0.360; OKLCH L 70.0% C 0.160 H 125.5°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#87AF2C
RGBrgb(135, 175, 44)
HSLhsl(78, 60%, 43%)
HSVhsv(78, 75%, 69%)
CMYKcmyk(22.9%, 0%, 74.9%, 31.4%)
CIE-LABlab(66.51, -32.02, 58.60)
CIE-LCHlch(66.51, 66.78, 118.66°)
OKLaboklab(70.05% -0.0927 0.1302)
OKLCHoklch(70.05% 0.16 125.5)
XYZxyz(25.7765, 35.9923, 7.9716)
Luminance0.3599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87AF2C #542CAF
analogous
#AF962C #87AF2C #45AF2C
triadic
#87AF2C #2C87AF #AF2C87
tetradic
#87AF2C #2CAF96 #542CAF #AF2C45
square
#87AF2C #2CAF96 #542CAF #AF2C45
split-complementary
#87AF2C #2C45AF #962CAF
monochromatic
#3C4D13 #617E20 #87AF2C #A7D147 #BEDD78

Accessibility & contrast

On white

2.56
#87AF2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#87AF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #87AF2C
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87AF2C#FFFFFF#000000##000000
##87AF2C1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A30F
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#8DA696
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #87af2c;
/* rgb */ color: rgb(135, 175, 44);
/* oklch */ color: oklch(70.0% 0.160 125.5);
Tailwind
colors: {
  custom: {
    50: '#aec76f',
    500: '#87af2c',
    950: '#000000',
  },
}
SCSS
$custom: #87af2c;
$custom-light: #aec76f;
$custom-dark: #000000;
JSON
{
  "hex": "#87af2c",
  "rgb": {
    "r": 135,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 78.321,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70046,
    "c": 0.15982,
    "h": 125.5
  },
  "luminance": 0.35993
}

Semantic roles & 50–950 ramp

primary
#87AF2C
secondary
#8B72C5
accent
#45E375
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #87AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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