#87871B#87871B

#87871B is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.4% C 0.123 H 109.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#87871B
RGBrgb(135, 135, 27)
HSLhsl(60, 67%, 32%)
HSVhsv(60, 80%, 53%)
CMYKcmyk(0%, 0%, 80%, 47.1%)
CIE-LABlab(54.61, -12.77, 53.13)
CIE-LCHlch(54.61, 54.64, 103.52°)
OKLaboklab(60.44% -0.0411 0.1156)
OKLCHoklch(60.44% 0.123 109.6)
XYZxyz(18.8542, 22.5586, 4.3978)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871B #1B1B87
analogous
#87511B #87871B #51871B
triadic
#87871B #1B8787 #871B87
tetradic
#87871B #1B8751 #1B1B87 #871B51
square
#87871B #1B8751 #1B1B87 #871B51
split-complementary
#87871B #1B5187 #511B87
monochromatic
#212107 #545411 #87871B #BABA25 #D9D943

Accessibility & contrast

On white

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

On black

5.51
#87871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87871B
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87871B#FFFFFF#000000##000000
##87871B1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87871b;
/* rgb */ color: rgb(135, 135, 27);
/* oklch */ color: oklch(60.4% 0.123 109.6);
Tailwind
colors: {
  custom: {
    50: '#ada962',
    500: '#87871b',
    950: '#000000',
  },
}
SCSS
$custom: #87871b;
$custom-light: #ada962;
$custom-dark: #000000;
JSON
{
  "hex": "#87871b",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 60,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60437,
    "c": 0.12268,
    "h": 109.6
  },
  "luminance": 0.22558
}

Semantic roles & 50–950 ramp

primary
#87871B
secondary
#4444BA
accent
#3EEA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87871B

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

Preview Lab → · Contrast checker → · Palette generator →

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