#87731A#87731A

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

Color values

HEX#87731A
RGBrgb(135, 115, 26)
HSLhsl(49, 68%, 32%)
HSVhsv(49, 81%, 53%)
CMYKcmyk(0%, 14.8%, 80.7%, 47.1%)
CIE-LABlab(48.87, -1.76, 48.29)
CIE-LCHlch(48.87, 48.32, 92.09°)
OKLaboklab(55.87% -0.0103 0.105)
OKLCHoklch(55.87% 0.106 95.6)
XYZxyz(16.3098, 17.4879, 3.4935)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87731A #1A2E87
analogous
#873D1A #87731A #65871A
triadic
#87731A #1A8773 #731A87
tetradic
#87731A #1A873D #1A2E87 #871A65
square
#87731A #1A873D #1A2E87 #871A65
split-complementary
#87731A #1A6587 #3D1A87
monochromatic
#201C06 #544710 #87731A #BA9F24 #DABE41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87731A#FFFFFF#000000##FFFFFF
##87731A1.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)
#807006
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#926962
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #87731a;
/* rgb */ color: rgb(135, 115, 26);
/* oklch */ color: oklch(55.9% 0.106 95.6);
Tailwind
colors: {
  custom: {
    50: '#ae9a5f',
    500: '#87731a',
    950: '#000000',
  },
}
SCSS
$custom: #87731a;
$custom-light: #ae9a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#87731a",
  "rgb": {
    "r": 135,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 48.991,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55866,
    "c": 0.10552,
    "h": 95.6
  },
  "luminance": 0.17487
}

Semantic roles & 50–950 ramp

primary
#87731A
secondary
#4258BA
accent
#5DEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #87731A

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

Preview Lab → · Contrast checker → · Palette generator →

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