#8D771F#8D771F

#8D771F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.4% C 0.106 H 94.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8D771F
RGBrgb(141, 119, 31)
HSLhsl(48, 64%, 34%)
HSVhsv(48, 78%, 55%)
CMYKcmyk(0%, 15.6%, 78%, 44.7%)
CIE-LABlab(50.64, -1.00, 48.32)
CIE-LCHlch(50.64, 48.33, 91.19°)
OKLaboklab(57.42% -0.0079 0.1059)
OKLCHoklch(57.42% 0.106 94.3)
XYZxyz(17.8296, 18.9563, 4.0159)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D771F #1F358D
analogous
#8D401F #8D771F #6C8D1F
triadic
#8D771F #1F8D77 #771F8D
tetradic
#8D771F #1F8D40 #1F358D #8D1F6C
square
#8D771F #1F8D40 #1F358D #8D1F6C
split-complementary
#8D771F #1F6C8D #401F8D
monochromatic
#292209 #5B4D14 #8D771F #BFA12A #D8BD4E

Accessibility & contrast

On white

4.38
#8D771F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8D771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D771F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D771F#FFFFFF#000000##000000
##8D771F1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#84750E
Deuteranopia (green-blind)
#8A7B24
Tritanopia (blue-blind)
#996D66
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8d771f;
/* rgb */ color: rgb(141, 119, 31);
/* oklch */ color: oklch(57.4% 0.106 94.3);
Tailwind
colors: {
  custom: {
    50: '#b29d62',
    500: '#8d771f',
    950: '#000000',
  },
}
SCSS
$custom: #8d771f;
$custom-light: #b29d62;
$custom-dark: #000000;
JSON
{
  "hex": "#8d771f",
  "rgb": {
    "r": 141,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 48,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57416,
    "c": 0.10616,
    "h": 94.3
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#8D771F
secondary
#4D63BB
accent
#62E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8D771F

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

Preview Lab → · Contrast checker → · Palette generator →

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