#87971B#87971B

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

Color values

HEX#87971B
RGBrgb(135, 151, 27)
HSLhsl(68, 70%, 35%)
HSVhsv(68, 82%, 59%)
CMYKcmyk(10.6%, 0%, 82.1%, 40.8%)
CIE-LABlab(59.31, -21.11, 57.29)
CIE-LCHlch(59.31, 61.05, 110.23°)
OKLaboklab(64.2% -0.0641 0.1245)
OKLCHoklch(64.2% 0.14 117.3)
XYZxyz(21.2567, 27.3635, 5.1986)
Luminance0.2736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87971B #2B1B97
analogous
#97691B #87971B #49971B
triadic
#87971B #1B8797 #971B87
tetradic
#87971B #1B9769 #2B1B97 #971B49
square
#87971B #1B9769 #2B1B97 #971B49
split-complementary
#87971B #1B4997 #691B97
monochromatic
#2A2F08 #596312 #87971B #B5CB24 #CCDF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87971B#FFFFFF#000000##000000
##87971B1.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)
#A08F28
Tritanopia (blue-blind)
#908E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #87971b;
/* rgb */ color: rgb(135, 151, 27);
/* oklch */ color: oklch(64.2% 0.140 117.3);
Tailwind
colors: {
  custom: {
    50: '#aeb564',
    500: '#87971b',
    950: '#000000',
  },
}
SCSS
$custom: #87971b;
$custom-light: #aeb564;
$custom-dark: #000000;
JSON
{
  "hex": "#87971b",
  "rgb": {
    "r": 135,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 67.742,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64201,
    "c": 0.14004,
    "h": 117.3
  },
  "luminance": 0.27363
}

Semantic roles & 50–950 ramp

primary
#87971B
secondary
#5B4CC1
accent
#3BEC52
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87971B

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

Preview Lab → · Contrast checker → · Palette generator →

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