#87981C#87981C

#87981C 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#87981C
RGBrgb(135, 152, 28)
HSLhsl(68, 69%, 35%)
HSVhsv(68, 82%, 60%)
CMYKcmyk(11.2%, 0%, 81.6%, 40.4%)
CIE-LABlab(59.61, -21.58, 57.27)
CIE-LCHlch(59.61, 61.20, 110.65°)
OKLaboklab(64.44% -0.0654 0.1246)
OKLCHoklch(64.44% 0.141 117.7)
XYZxyz(21.4301, 27.6914, 5.3144)
Luminance0.2769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87981C #2D1C98
analogous
#986B1C #87981C #49981C
triadic
#87981C #1C8798 #981C87
tetradic
#87981C #1C986B #2D1C98 #981C49
square
#87981C #1C986B #2D1C98 #981C49
split-complementary
#87981C #1C4998 #6B1C98
monochromatic
#2B3109 #596412 #87981C #B5CC26 #CBDF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87981C#FFFFFF#000000##000000
##87981C1.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)
#A19029
Tritanopia (blue-blind)
#908F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #87981c;
/* rgb */ color: rgb(135, 152, 28);
/* oklch */ color: oklch(64.4% 0.141 117.7);
Tailwind
colors: {
  custom: {
    50: '#aeb665',
    500: '#87981c',
    950: '#000000',
  },
}
SCSS
$custom: #87981c;
$custom-light: #aeb665;
$custom-dark: #000000;
JSON
{
  "hex": "#87981c",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 68.226,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64444,
    "c": 0.14073,
    "h": 117.7
  },
  "luminance": 0.27691
}

Semantic roles & 50–950 ramp

primary
#87981C
secondary
#5E4EC1
accent
#3CEC54
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87981C

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

Preview Lab → · Contrast checker → · Palette generator →

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