#87731F#87731F

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

Color values

HEX#87731F
RGBrgb(135, 115, 31)
HSLhsl(48, 63%, 33%)
HSVhsv(48, 77%, 53%)
CMYKcmyk(0%, 14.8%, 77%, 47.1%)
CIE-LABlab(48.90, -1.54, 46.46)
CIE-LCHlch(48.90, 46.48, 91.90°)
OKLaboklab(55.9% -0.0091 0.1022)
OKLCHoklch(55.9% 0.103 95.1)
XYZxyz(16.3706, 17.5122, 3.8140)
Luminance0.1751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87731F #1F3387
analogous
#873F1F #87731F #67871F
triadic
#87731F #1F8773 #731F87
tetradic
#87731F #1F873F #1F3387 #871F67
square
#87731F #1F873F #1F3387 #871F67
split-complementary
#87731F #1F6787 #3F1F87
monochromatic
#231E08 #554914 #87731F #B99D2A #D6BB4B

Accessibility & contrast

On white

4.66
#87731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #87731F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87731F#FFFFFF#000000##FFFFFF
##87731F1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#926963
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #87731f;
/* rgb */ color: rgb(135, 115, 31);
/* oklch */ color: oklch(55.9% 0.103 95.1);
Tailwind
colors: {
  custom: {
    50: '#ad9a61',
    500: '#87731f',
    950: '#000000',
  },
}
SCSS
$custom: #87731f;
$custom-light: #ad9a61;
$custom-dark: #000000;
JSON
{
  "hex": "#87731f",
  "rgb": {
    "r": 135,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 48.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.559,
    "c": 0.10258,
    "h": 95.1
  },
  "luminance": 0.17511
}

Semantic roles & 50–950 ramp

primary
#87731F
secondary
#4A5FB8
accent
#62E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #87731F

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

Preview Lab → · Contrast checker → · Palette generator →

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