#87981B#87981B

#87981B is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.4% C 0.141 H 117.7°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#87981B
RGBrgb(135, 152, 27)
HSLhsl(68, 70%, 35%)
HSVhsv(68, 82%, 60%)
CMYKcmyk(11.2%, 0%, 82.2%, 40.4%)
CIE-LABlab(59.60, -21.62, 57.55)
CIE-LCHlch(59.60, 61.47, 110.59°)
OKLaboklab(64.44% -0.0655 0.1251)
OKLCHoklch(64.44% 0.141 117.7)
XYZxyz(21.4183, 27.6867, 5.2525)
Luminance0.2769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87981B #2C1B98
analogous
#986A1B #87981B #49981B
triadic
#87981B #1B8798 #981B87
tetradic
#87981B #1B986A #2C1B98 #981B49
square
#87981B #1B986A #2C1B98 #981B49
split-complementary
#87981B #1B4998 #6A1B98
monochromatic
#2B3009 #596412 #87981B #B5CC24 #CCE04E

Accessibility & contrast

On white

3.21
#87981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#87981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87981B
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87981B#FFFFFF#000000##000000
##87981B1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#A19028
Tritanopia (blue-blind)
#908F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #87981b;
/* rgb */ color: rgb(135, 152, 27);
/* oklch */ color: oklch(64.4% 0.141 117.7);
Tailwind
colors: {
  custom: {
    50: '#aeb664',
    500: '#87981b',
    950: '#000000',
  },
}
SCSS
$custom: #87981b;
$custom-light: #aeb664;
$custom-dark: #000000;
JSON
{
  "hex": "#87981b",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 68.16,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64439,
    "c": 0.14118,
    "h": 117.7
  },
  "luminance": 0.27687
}

Semantic roles & 50–950 ramp

primary
#87981B
secondary
#5D4DC2
accent
#3BED53
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87981B

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

Preview Lab → · Contrast checker → · Palette generator →

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