#87981F#87981F

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

Color values

HEX#87981F
RGBrgb(135, 152, 31)
HSLhsl(68, 66%, 36%)
HSVhsv(68, 80%, 60%)
CMYKcmyk(11.2%, 0%, 79.6%, 40.4%)
CIE-LABlab(59.62, -21.46, 56.39)
CIE-LCHlch(59.62, 60.34, 110.83°)
OKLaboklab(64.46% -0.0648 0.1233)
OKLCHoklch(64.46% 0.139 117.7)
XYZxyz(21.4678, 27.7065, 5.5130)
Luminance0.2771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87981F #301F98
analogous
#986C1F #87981F #4A981F
triadic
#87981F #1F8798 #981F87
tetradic
#87981F #1F986C #301F98 #981F4A
square
#87981F #1F986C #301F98 #981F4A
split-complementary
#87981F #1F4A98 #6C1F98
monochromatic
#2D320A #5A6515 #87981F #B4CB29 #C9DC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #87981f;
/* rgb */ color: rgb(135, 152, 31);
/* oklch */ color: oklch(64.5% 0.139 117.7);
Tailwind
colors: {
  custom: {
    50: '#adb666',
    500: '#87981f',
    950: '#000000',
  },
}
SCSS
$custom: #87981f;
$custom-light: #adb666;
$custom-dark: #000000;
JSON
{
  "hex": "#87981f",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 68.43,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64459,
    "c": 0.1393,
    "h": 117.7
  },
  "luminance": 0.27706
}

Semantic roles & 50–950 ramp

primary
#87981F
secondary
#6253C0
accent
#3FE957
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87981F

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

Preview Lab → · Contrast checker → · Palette generator →

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