#87871C#87871C

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

Color values

HEX#87871C
RGBrgb(135, 135, 28)
HSLhsl(60, 66%, 32%)
HSVhsv(60, 79%, 53%)
CMYKcmyk(0%, 0%, 79.3%, 47.1%)
CIE-LABlab(54.62, -12.73, 52.82)
CIE-LCHlch(54.62, 54.33, 103.55°)
OKLaboklab(60.44% -0.0409 0.1151)
OKLCHoklch(60.44% 0.122 109.6)
XYZxyz(18.8660, 22.5633, 4.4597)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871C #1C1C87
analogous
#87521C #87871C #52871C
triadic
#87871C #1C8787 #871C87
tetradic
#87871C #1C8752 #1C1C87 #871C52
square
#87871C #1C8752 #1C1C87 #871C52
split-complementary
#87871C #1C5287 #521C87
monochromatic
#222207 #545411 #87871C #BABA27 #D8D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87871C#FFFFFF#000000##000000
##87871C1.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)
#928100
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #87871c;
/* rgb */ color: rgb(135, 135, 28);
/* oklch */ color: oklch(60.4% 0.122 109.6);
Tailwind
colors: {
  custom: {
    50: '#ada962',
    500: '#87871c',
    950: '#000000',
  },
}
SCSS
$custom: #87871c;
$custom-light: #ada962;
$custom-dark: #000000;
JSON
{
  "hex": "#87871c",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 60,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.12217,
    "h": 109.6
  },
  "luminance": 0.22563
}

Semantic roles & 50–950 ramp

primary
#87871C
secondary
#4545BA
accent
#3FE93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87871C

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

Preview Lab → · Contrast checker → · Palette generator →

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