#87971F#87971F

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

Color values

HEX#87971F
RGBrgb(135, 151, 31)
HSLhsl(68, 66%, 36%)
HSVhsv(68, 79%, 59%)
CMYKcmyk(10.6%, 0%, 79.5%, 40.8%)
CIE-LABlab(59.33, -20.95, 56.13)
CIE-LCHlch(59.33, 59.91, 110.47°)
OKLaboklab(64.22% -0.0634 0.1227)
OKLCHoklch(64.22% 0.138 117.3)
XYZxyz(21.3061, 27.3833, 5.4592)
Luminance0.2738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87971F #2F1F97
analogous
#976B1F #87971F #4B971F
triadic
#87971F #1F8797 #971F87
tetradic
#87971F #1F976B #2F1F97 #971F4B
square
#87971F #1F976B #2F1F97 #971F4B
split-complementary
#87971F #1F4B97 #6B1F97
monochromatic
#2C310A #5A6415 #87971F #B4CA29 #CADC54

Accessibility & contrast

On white

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

On black

6.48
#87971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87971F
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87971F#FFFFFF#000000##000000
##87971F1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87971f;
/* rgb */ color: rgb(135, 151, 31);
/* oklch */ color: oklch(64.2% 0.138 117.3);
Tailwind
colors: {
  custom: {
    50: '#adb566',
    500: '#87971f',
    950: '#000000',
  },
}
SCSS
$custom: #87971f;
$custom-light: #adb566;
$custom-dark: #000000;
JSON
{
  "hex": "#87971f",
  "rgb": {
    "r": 135,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 68,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64222,
    "c": 0.13814,
    "h": 117.3
  },
  "luminance": 0.27383
}

Semantic roles & 50–950 ramp

primary
#87971F
secondary
#6152BF
accent
#3FE956
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87971F

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

Preview Lab → · Contrast checker → · Palette generator →

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