#87871E#87871E

#87871E 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.51:1 contrast (WCAG AA passes).

Color values

HEX#87871E
RGBrgb(135, 135, 30)
HSLhsl(60, 64%, 32%)
HSVhsv(60, 78%, 53%)
CMYKcmyk(0%, 0%, 77.8%, 47.1%)
CIE-LABlab(54.63, -12.65, 52.17)
CIE-LCHlch(54.63, 53.68, 103.63°)
OKLaboklab(60.45% -0.0405 0.1141)
OKLCHoklch(60.45% 0.121 109.5)
XYZxyz(18.8907, 22.5732, 4.5900)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871E #1E1E87
analogous
#87531E #87871E #53871E
triadic
#87871E #1E8787 #871E87
tetradic
#87871E #1E8753 #1E1E87 #871E53
square
#87871E #1E8753 #1E1E87 #871E53
split-complementary
#87871E #1E5387 #531E87
monochromatic
#232308 #555513 #87871E #B9B929 #D7D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87871E#FFFFFF#000000##000000
##87871E1.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)
#928103
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #87871e;
/* rgb */ color: rgb(135, 135, 30);
/* oklch */ color: oklch(60.5% 0.121 109.5);
Tailwind
colors: {
  custom: {
    50: '#ada963',
    500: '#87871e',
    950: '#000000',
  },
}
SCSS
$custom: #87871e;
$custom-light: #ada963;
$custom-dark: #000000;
JSON
{
  "hex": "#87871e",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 60,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.1211,
    "h": 109.5
  },
  "luminance": 0.22573
}

Semantic roles & 50–950 ramp

primary
#87871E
secondary
#4848B9
accent
#41E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87871E

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

Preview Lab → · Contrast checker → · Palette generator →

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