#87791F#87791F

#87791F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.2% C 0.107 H 100.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#87791F
RGBrgb(135, 121, 31)
HSLhsl(52, 63%, 33%)
HSVhsv(52, 77%, 53%)
CMYKcmyk(0%, 10.4%, 77%, 47.1%)
CIE-LABlab(50.60, -4.93, 48.07)
CIE-LCHlch(50.60, 48.32, 95.86°)
OKLaboklab(57.25% -0.0187 0.1056)
OKLCHoklch(57.25% 0.107 100.1)
XYZxyz(17.0772, 18.9254, 4.0495)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87791F #1F2D87
analogous
#87451F #87791F #61871F
triadic
#87791F #1F8779 #791F87
tetradic
#87791F #1F8745 #1F2D87 #871F61
square
#87791F #1F8745 #1F2D87 #871F61
split-complementary
#87791F #1F6187 #451F87
monochromatic
#232008 #554C14 #87791F #B9A62A #D6C34B

Accessibility & contrast

On white

4.39
#87791F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#87791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87791F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87791F#FFFFFF#000000##000000
##87791F1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#927068
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #87791f;
/* rgb */ color: rgb(135, 121, 31);
/* oklch */ color: oklch(57.2% 0.107 100.1);
Tailwind
colors: {
  custom: {
    50: '#ad9f62',
    500: '#87791f',
    950: '#000000',
  },
}
SCSS
$custom: #87791f;
$custom-light: #ad9f62;
$custom-dark: #000000;
JSON
{
  "hex": "#87791f",
  "rgb": {
    "r": 135,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 51.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57247,
    "c": 0.10725,
    "h": 100.1
  },
  "luminance": 0.18925
}

Semantic roles & 50–950 ramp

primary
#87791F
secondary
#4A58B8
accent
#58E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #87791F

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

Preview Lab → · Contrast checker → · Palette generator →

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