#87841D#87841D

#87841D is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.119 H 107.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#87841D
RGBrgb(135, 132, 29)
HSLhsl(58, 65%, 32%)
HSVhsv(58, 79%, 53%)
CMYKcmyk(0%, 2.2%, 78.5%, 47.1%)
CIE-LABlab(53.75, -11.07, 51.70)
CIE-LCHlch(53.75, 52.88, 102.09°)
OKLaboklab(59.75% -0.0362 0.1129)
OKLCHoklch(59.75% 0.119 107.8)
XYZxyz(18.4654, 21.7428, 4.3863)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87841D #1D2087
analogous
#874F1D #87841D #55871D
triadic
#87841D #1D8784 #841D87
tetradic
#87841D #1D874F #1D2087 #871D55
square
#87841D #1D874F #1D2087 #871D55
split-complementary
#87841D #1D5587 #4F1D87
monochromatic
#222107 #555312 #87841D #B9B528 #D7D347

Accessibility & contrast

On white

3.93
#87841D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#87841D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87841D
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87841D#FFFFFF#000000##000000
##87841D1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E03
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87841d;
/* rgb */ color: rgb(135, 132, 29);
/* oklch */ color: oklch(59.8% 0.119 107.8);
Tailwind
colors: {
  custom: {
    50: '#ada762',
    500: '#87841d',
    950: '#000000',
  },
}
SCSS
$custom: #87841d;
$custom-light: #ada762;
$custom-dark: #000000;
JSON
{
  "hex": "#87841d",
  "rgb": {
    "r": 135,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 58.302,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59752,
    "c": 0.1186,
    "h": 107.8
  },
  "luminance": 0.21742
}

Semantic roles & 50–950 ramp

primary
#87841D
secondary
#464AB9
accent
#45E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87841D

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

Preview Lab → · Contrast checker → · Palette generator →

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