#87731B#87731B

#87731B is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.9% C 0.105 H 95.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#87731B
RGBrgb(135, 115, 27)
HSLhsl(49, 67%, 32%)
HSVhsv(49, 80%, 53%)
CMYKcmyk(0%, 14.8%, 80%, 47.1%)
CIE-LABlab(48.87, -1.72, 47.94)
CIE-LCHlch(48.87, 47.97, 92.05°)
OKLaboklab(55.87% -0.01 0.1045)
OKLCHoklch(55.87% 0.105 95.5)
XYZxyz(16.3211, 17.4924, 3.5534)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87731B #1B2F87
analogous
#873D1B #87731B #65871B
triadic
#87731B #1B8773 #731B87
tetradic
#87731B #1B873D #1B2F87 #871B65
square
#87731B #1B873D #1B2F87 #871B65
split-complementary
#87731B #1B6587 #3D1B87
monochromatic
#211C07 #544811 #87731B #BA9E25 #D9BE43

Accessibility & contrast

On white

4.67
#87731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#87731B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #87731B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87731B#FFFFFF#000000##FFFFFF
##87731B1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#857721
Tritanopia (blue-blind)
#926962
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #87731b;
/* rgb */ color: rgb(135, 115, 27);
/* oklch */ color: oklch(55.9% 0.105 95.5);
Tailwind
colors: {
  custom: {
    50: '#ae9a5f',
    500: '#87731b',
    950: '#000000',
  },
}
SCSS
$custom: #87731b;
$custom-light: #ae9a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#87731b",
  "rgb": {
    "r": 135,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 48.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55872,
    "c": 0.10496,
    "h": 95.5
  },
  "luminance": 0.17491
}

Semantic roles & 50–950 ramp

primary
#87731B
secondary
#445ABA
accent
#5EEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #87731B

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

Preview Lab → · Contrast checker → · Palette generator →

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