#87871D#87871D

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

Color values

HEX#87871D
RGBrgb(135, 135, 29)
HSLhsl(60, 65%, 32%)
HSVhsv(60, 79%, 53%)
CMYKcmyk(0%, 0%, 78.5%, 47.1%)
CIE-LABlab(54.62, -12.69, 52.50)
CIE-LCHlch(54.62, 54.01, 103.59°)
OKLaboklab(60.45% -0.0407 0.1146)
OKLCHoklch(60.45% 0.122 109.5)
XYZxyz(18.8781, 22.5681, 4.5238)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87871D #1D1D87
analogous
#87521D #87871D #52871D
triadic
#87871D #1D8787 #871D87
tetradic
#87871D #1D8752 #1D1D87 #871D52
square
#87871D #1D8752 #1D1D87 #871D52
split-complementary
#87871D #1D5287 #521D87
monochromatic
#222207 #555512 #87871D #B9B928 #D7D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87871D#FFFFFF#000000##000000
##87871D1.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)
#928101
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #87871d;
/* rgb */ color: rgb(135, 135, 29);
/* oklch */ color: oklch(60.4% 0.122 109.5);
Tailwind
colors: {
  custom: {
    50: '#ada963',
    500: '#87871d',
    950: '#000000',
  },
}
SCSS
$custom: #87871d;
$custom-light: #ada963;
$custom-dark: #000000;
JSON
{
  "hex": "#87871d",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 60,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60448,
    "c": 0.12164,
    "h": 109.5
  },
  "luminance": 0.22568
}

Semantic roles & 50–950 ramp

primary
#87871D
secondary
#4646B9
accent
#40E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87871D

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

Preview Lab → · Contrast checker → · Palette generator →

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