#87981A#87981A

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

Color values

HEX#87981A
RGBrgb(135, 152, 26)
HSLhsl(68, 71%, 35%)
HSVhsv(68, 83%, 60%)
CMYKcmyk(11.2%, 0%, 82.9%, 40.4%)
CIE-LABlab(59.60, -21.65, 57.82)
CIE-LCHlch(59.60, 61.74, 110.53°)
OKLaboklab(64.43% -0.0657 0.1255)
OKLCHoklch(64.43% 0.142 117.6)
XYZxyz(21.4069, 27.6822, 5.1926)
Luminance0.2768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87981A #2B1A98
analogous
#986A1A #87981A #48981A
triadic
#87981A #1A8798 #981A87
tetradic
#87981A #1A986A #2B1A98 #981A48
square
#87981A #1A986A #2B1A98 #981A48
split-complementary
#87981A #1A4898 #6A1A98
monochromatic
#2A2F08 #596411 #87981A #B5CC23 #CCE04C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87981A#FFFFFF#000000##000000
##87981A1.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)
#A19027
Tritanopia (blue-blind)
#908F81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #87981a;
/* rgb */ color: rgb(135, 152, 26);
/* oklch */ color: oklch(64.4% 0.142 117.6);
Tailwind
colors: {
  custom: {
    50: '#aeb664',
    500: '#87981a',
    950: '#000000',
  },
}
SCSS
$custom: #87981a;
$custom-light: #aeb664;
$custom-dark: #000000;
JSON
{
  "hex": "#87981a",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 68.095,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64434,
    "c": 0.14161,
    "h": 117.6
  },
  "luminance": 0.27682
}

Semantic roles & 50–950 ramp

primary
#87981A
secondary
#5B4BC2
accent
#3AEE52
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87981A

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

Preview Lab → · Contrast checker → · Palette generator →

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