#87871A#87871A

#87871A 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#87871A
RGBrgb(135, 135, 26)
HSLhsl(60, 68%, 32%)
HSVhsv(60, 81%, 53%)
CMYKcmyk(0%, 0%, 80.7%, 47.1%)
CIE-LABlab(54.61, -12.81, 53.43)
CIE-LCHlch(54.61, 54.95, 103.48°)
OKLaboklab(60.43% -0.0413 0.1161)
OKLCHoklch(60.43% 0.123 109.6)
XYZxyz(18.8428, 22.5540, 4.3379)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871A #1A1A87
analogous
#87511A #87871A #51871A
triadic
#87871A #1A8787 #871A87
tetradic
#87871A #1A8751 #1A1A87 #871A51
square
#87871A #1A8751 #1A1A87 #871A51
split-complementary
#87871A #1A5187 #511A87
monochromatic
#202006 #545410 #87871A #BABA24 #DADA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87871A#FFFFFF#000000##000000
##87871A1.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)
#948424
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #87871a;
/* rgb */ color: rgb(135, 135, 26);
/* oklch */ color: oklch(60.4% 0.123 109.6);
Tailwind
colors: {
  custom: {
    50: '#ada962',
    500: '#87871a',
    950: '#000000',
  },
}
SCSS
$custom: #87871a;
$custom-light: #ada962;
$custom-dark: #000000;
JSON
{
  "hex": "#87871a",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 60,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60432,
    "c": 0.12317,
    "h": 109.6
  },
  "luminance": 0.22553
}

Semantic roles & 50–950 ramp

primary
#87871A
secondary
#4242BA
accent
#3DEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87871A

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

Preview Lab → · Contrast checker → · Palette generator →

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