#87841B#87841B

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

Color values

HEX#87841B
RGBrgb(135, 132, 27)
HSLhsl(58, 67%, 32%)
HSVhsv(58, 80%, 53%)
CMYKcmyk(0%, 2.2%, 80%, 47.1%)
CIE-LABlab(53.74, -11.15, 52.35)
CIE-LCHlch(53.74, 53.52, 102.03°)
OKLaboklab(59.74% -0.0366 0.1139)
OKLCHoklch(59.74% 0.12 107.8)
XYZxyz(18.4415, 21.7332, 4.2602)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87841B #1B1E87
analogous
#874E1B #87841B #54871B
triadic
#87841B #1B8784 #841B87
tetradic
#87841B #1B874E #1B1E87 #871B54
square
#87841B #1B874E #1B1E87 #871B54
split-complementary
#87841B #1B5487 #4E1B87
monochromatic
#212007 #545211 #87841B #BAB625 #D9D543

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87841B#FFFFFF#000000##000000
##87841B1.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)
#907E00
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87841b;
/* rgb */ color: rgb(135, 132, 27);
/* oklch */ color: oklch(59.7% 0.120 107.8);
Tailwind
colors: {
  custom: {
    50: '#ada762',
    500: '#87841b',
    950: '#000000',
  },
}
SCSS
$custom: #87841b;
$custom-light: #ada762;
$custom-dark: #000000;
JSON
{
  "hex": "#87841b",
  "rgb": {
    "r": 135,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 58.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59741,
    "c": 0.11965,
    "h": 107.8
  },
  "luminance": 0.21733
}

Semantic roles & 50–950 ramp

primary
#87841B
secondary
#4447BA
accent
#43EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87841B

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

Preview Lab → · Contrast checker → · Palette generator →

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