#87831B#87831B

#87831B is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.5% C 0.119 H 107.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#87831B
RGBrgb(135, 131, 27)
HSLhsl(58, 67%, 32%)
HSVhsv(58, 80%, 53%)
CMYKcmyk(0%, 3%, 80%, 47.1%)
CIE-LABlab(53.45, -10.61, 52.09)
CIE-LCHlch(53.45, 53.16, 101.52°)
OKLaboklab(59.51% -0.0351 0.1134)
OKLCHoklch(59.51% 0.119 107.2)
XYZxyz(18.3066, 21.4633, 4.2152)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87831B #1B1F87
analogous
#874D1B #87831B #55871B
triadic
#87831B #1B8783 #831B87
tetradic
#87831B #1B874D #1B1F87 #871B55
square
#87831B #1B874D #1B1F87 #871B55
split-complementary
#87831B #1B5587 #4D1B87
monochromatic
#212007 #545211 #87831B #BAB425 #D9D443

Accessibility & contrast

On white

3.97
#87831B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#87831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87831B
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87831B#FFFFFF#000000##000000
##87831B1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#918124
Tritanopia (blue-blind)
#917A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87831b;
/* rgb */ color: rgb(135, 131, 27);
/* oklch */ color: oklch(59.5% 0.119 107.2);
Tailwind
colors: {
  custom: {
    50: '#ada661',
    500: '#87831b',
    950: '#000000',
  },
}
SCSS
$custom: #87831b;
$custom-light: #ada661;
$custom-dark: #000000;
JSON
{
  "hex": "#87831b",
  "rgb": {
    "r": 135,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 57.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5951,
    "c": 0.11866,
    "h": 107.2
  },
  "luminance": 0.21463
}

Semantic roles & 50–950 ramp

primary
#87831B
secondary
#4448BA
accent
#45EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87831B

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

Preview Lab → · Contrast checker → · Palette generator →

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