#8A771F#8A771F

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

Color values

HEX#8A771F
RGBrgb(138, 119, 31)
HSLhsl(49, 63%, 33%)
HSVhsv(49, 78%, 54%)
CMYKcmyk(0%, 13.8%, 77.5%, 45.9%)
CIE-LABlab(50.33, -2.40, 47.92)
CIE-LCHlch(50.33, 47.98, 92.87°)
OKLaboklab(57.1% -0.0117 0.1052)
OKLCHoklch(57.1% 0.106 96.4)
XYZxyz(17.3263, 18.6968, 3.9923)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A771F #1F328A
analogous
#8A411F #8A771F #678A1F
triadic
#8A771F #1F8A77 #771F8A
tetradic
#8A771F #1F8A41 #1F328A #8A1F67
square
#8A771F #1F8A41 #1F328A #8A1F67
split-complementary
#8A771F #1F678A #411F8A
monochromatic
#262109 #584C14 #8A771F #BCA22A #D7BE4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A771F#FFFFFF#000000##000000
##8A771F1.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)
#84740E
Deuteranopia (green-blind)
#897A25
Tritanopia (blue-blind)
#956D66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a771f;
/* rgb */ color: rgb(138, 119, 31);
/* oklch */ color: oklch(57.1% 0.106 96.4);
Tailwind
colors: {
  custom: {
    50: '#b09d62',
    500: '#8a771f',
    950: '#000000',
  },
}
SCSS
$custom: #8a771f;
$custom-light: #b09d62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a771f",
  "rgb": {
    "r": 138,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 49.346,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57103,
    "c": 0.1058,
    "h": 96.4
  },
  "luminance": 0.18696
}

Semantic roles & 50–950 ramp

primary
#8A771F
secondary
#4B5FBA
accent
#5FE641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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