#8B771F#8B771F

#8B771F is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.2% C 0.106 H 95.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8B771F
RGBrgb(139, 119, 31)
HSLhsl(49, 64%, 33%)
HSVhsv(49, 78%, 55%)
CMYKcmyk(0%, 14.4%, 77.7%, 45.5%)
CIE-LABlab(50.43, -1.94, 48.05)
CIE-LCHlch(50.43, 48.09, 92.31°)
OKLaboklab(57.21% -0.0105 0.1054)
OKLCHoklch(57.21% 0.106 95.7)
XYZxyz(17.4925, 18.7825, 4.0001)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B771F #1F338B
analogous
#8B411F #8B771F #698B1F
triadic
#8B771F #1F8B77 #771F8B
tetradic
#8B771F #1F8B41 #1F338B #8B1F69
square
#8B771F #1F8B41 #1F338B #8B1F69
split-complementary
#8B771F #1F698B #411F8B
monochromatic
#272109 #594C14 #8B771F #BDA22A #D7BE4D

Accessibility & contrast

On white

4.42
#8B771F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8B771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B771F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B771F#FFFFFF#000000##000000
##8B771F1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#976D66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b771f;
/* rgb */ color: rgb(139, 119, 31);
/* oklch */ color: oklch(57.2% 0.106 95.7);
Tailwind
colors: {
  custom: {
    50: '#b09d62',
    500: '#8b771f',
    950: '#000000',
  },
}
SCSS
$custom: #8b771f;
$custom-light: #b09d62;
$custom-dark: #000000;
JSON
{
  "hex": "#8b771f",
  "rgb": {
    "r": 139,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 48.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57207,
    "c": 0.1059,
    "h": 95.7
  },
  "luminance": 0.18782
}

Semantic roles & 50–950 ramp

primary
#8B771F
secondary
#4C60BA
accent
#60E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8B771F

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

Preview Lab → · Contrast checker → · Palette generator →

#8B771F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva