#87981D#87981D

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

Color values

HEX#87981D
RGBrgb(135, 152, 29)
HSLhsl(68, 68%, 35%)
HSVhsv(68, 81%, 60%)
CMYKcmyk(11.2%, 0%, 80.9%, 40.4%)
CIE-LABlab(59.61, -21.54, 56.98)
CIE-LCHlch(59.61, 60.92, 110.71°)
OKLaboklab(64.45% -0.0652 0.1242)
OKLCHoklch(64.45% 0.14 117.7)
XYZxyz(21.4422, 27.6963, 5.3785)
Luminance0.2770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87981D #2E1D98
analogous
#986C1D #87981D #49981D
triadic
#87981D #1D8798 #981D87
tetradic
#87981D #1D986C #2E1D98 #981D49
square
#87981D #1D986C #2E1D98 #981D49
split-complementary
#87981D #1D4998 #6C1D98
monochromatic
#2C3109 #596513 #87981D #B5CB27 #CADE52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87981D#FFFFFF#000000##000000
##87981D1.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: #87981d;
/* rgb */ color: rgb(135, 152, 29);
/* oklch */ color: oklch(64.4% 0.140 117.7);
Tailwind
colors: {
  custom: {
    50: '#adb665',
    500: '#87981d',
    950: '#000000',
  },
}
SCSS
$custom: #87981d;
$custom-light: #adb665;
$custom-dark: #000000;
JSON
{
  "hex": "#87981d",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 68.293,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.64449,
    "c": 0.14026,
    "h": 117.7
  },
  "luminance": 0.27696
}

Semantic roles & 50–950 ramp

primary
#87981D
secondary
#6050C1
accent
#3DEB55
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87981D

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

Preview Lab → · Contrast checker → · Palette generator →

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