#87871F#87871F

#87871F is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.5% C 0.121 H 109.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#87871F
RGBrgb(135, 135, 31)
HSLhsl(60, 63%, 33%)
HSVhsv(60, 77%, 53%)
CMYKcmyk(0%, 0%, 77%, 47.1%)
CIE-LABlab(54.64, -12.60, 51.84)
CIE-LCHlch(54.64, 53.35, 103.67°)
OKLaboklab(60.46% -0.0403 0.1136)
OKLCHoklch(60.46% 0.121 109.5)
XYZxyz(18.9037, 22.5783, 4.6583)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871F #1F1F87
analogous
#87531F #87871F #53871F
triadic
#87871F #1F8787 #871F87
tetradic
#87871F #1F8753 #1F1F87 #871F53
square
#87871F #1F8753 #1F1F87 #871F53
split-complementary
#87871F #1F5387 #531F87
monochromatic
#232308 #555514 #87871F #B9B92A #D6D64B

Accessibility & contrast

On white

3.81
#87871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#87871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87871F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87871F#FFFFFF#000000##000000
##87871F1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928106
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #87871f;
/* rgb */ color: rgb(135, 135, 31);
/* oklch */ color: oklch(60.5% 0.121 109.5);
Tailwind
colors: {
  custom: {
    50: '#ada964',
    500: '#87871f',
    950: '#000000',
  },
}
SCSS
$custom: #87871f;
$custom-light: #ada964;
$custom-dark: #000000;
JSON
{
  "hex": "#87871f",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6046,
    "c": 0.12054,
    "h": 109.5
  },
  "luminance": 0.22578
}

Semantic roles & 50–950 ramp

primary
#87871F
secondary
#4A4AB8
accent
#42E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87871F

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

Preview Lab → · Contrast checker → · Palette generator →

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