#8A771B#8A771B

#8A771B is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 57.1% C 0.108 H 96.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A771B
RGBrgb(138, 119, 27)
HSLhsl(50, 67%, 32%)
HSVhsv(50, 80%, 54%)
CMYKcmyk(0%, 13.8%, 80.4%, 45.9%)
CIE-LABlab(50.31, -2.57, 49.36)
CIE-LCHlch(50.31, 49.42, 92.98°)
OKLaboklab(57.08% -0.0126 0.1074)
OKLCHoklch(57.08% 0.108 96.7)
XYZxyz(17.2768, 18.6770, 3.7317)
Luminance0.1868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A771B #1B2E8A
analogous
#8A401B #8A771B #658A1B
triadic
#8A771B #1B8A77 #771B8A
tetradic
#8A771B #1B8A40 #1B2E8A #8A1B65
square
#8A771B #1B8A40 #1B2E8A #8A1B65
split-complementary
#8A771B #1B658A #401B8A
monochromatic
#241F07 #574B11 #8A771B #BDA325 #DBC145

Accessibility & contrast

On white

4.43
#8A771B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8A771B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A771B
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A771B#FFFFFF#000000##000000
##8A771B1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847405
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#966D66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a771b;
/* rgb */ color: rgb(138, 119, 27);
/* oklch */ color: oklch(57.1% 0.108 96.7);
Tailwind
colors: {
  custom: {
    50: '#b09d60',
    500: '#8a771b',
    950: '#000000',
  },
}
SCSS
$custom: #8a771b;
$custom-light: #b09d60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a771b",
  "rgb": {
    "r": 138,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 49.73,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57078,
    "c": 0.10811,
    "h": 96.7
  },
  "luminance": 0.18676
}

Semantic roles & 50–950 ramp

primary
#8A771B
secondary
#4559BC
accent
#5BEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A771B

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

Preview Lab → · Contrast checker → · Palette generator →

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