#87971A#87971A

#87971A is a light, vivid yellow. Relative luminance 0.274; OKLCH L 64.2% C 0.140 H 117.2°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#87971A
RGBrgb(135, 151, 26)
HSLhsl(68, 71%, 35%)
HSVhsv(68, 83%, 59%)
CMYKcmyk(10.6%, 0%, 82.8%, 40.8%)
CIE-LABlab(59.31, -21.15, 57.56)
CIE-LCHlch(59.31, 61.32, 110.17°)
OKLaboklab(64.2% -0.0643 0.1249)
OKLCHoklch(64.2% 0.14 117.2)
XYZxyz(21.2453, 27.3590, 5.1387)
Luminance0.2736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87971A #2A1A97
analogous
#97691A #87971A #49971A
triadic
#87971A #1A8797 #971A87
tetradic
#87971A #1A9769 #2A1A97 #971A49
square
#87971A #1A9769 #2A1A97 #971A49
split-complementary
#87971A #1A4997 #691A97
monochromatic
#2A2F08 #586311 #87971A #B6CB23 #CDE04B

Accessibility & contrast

On white

3.24
#87971A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#87971A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87971A
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87971A#FFFFFF#000000##000000
##87971A1.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#A08F27
Tritanopia (blue-blind)
#908E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #87971a;
/* rgb */ color: rgb(135, 151, 26);
/* oklch */ color: oklch(64.2% 0.140 117.2);
Tailwind
colors: {
  custom: {
    50: '#aeb564',
    500: '#87971a',
    950: '#000000',
  },
}
SCSS
$custom: #87971a;
$custom-light: #aeb564;
$custom-dark: #000000;
JSON
{
  "hex": "#87971a",
  "rgb": {
    "r": 135,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 67.68,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.64197,
    "c": 0.14048,
    "h": 117.2
  },
  "luminance": 0.27359
}

Semantic roles & 50–950 ramp

primary
#87971A
secondary
#5A4BC2
accent
#3AED51
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87971A

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

Preview Lab → · Contrast checker → · Palette generator →

#87971A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva