#8D771B#8D771B

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

Color values

HEX#8D771B
RGBrgb(141, 119, 27)
HSLhsl(48, 68%, 33%)
HSVhsv(48, 81%, 55%)
CMYKcmyk(0%, 15.6%, 80.9%, 44.7%)
CIE-LABlab(50.61, -1.17, 49.75)
CIE-LCHlch(50.61, 49.76, 91.34°)
OKLaboklab(57.39% -0.0088 0.1081)
OKLCHoklch(57.39% 0.108 94.7)
XYZxyz(17.7802, 18.9365, 3.7553)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D771B #1B318D
analogous
#8D3E1B #8D771B #6A8D1B
triadic
#8D771B #1B8D77 #771B8D
tetradic
#8D771B #1B8D3E #1B318D #8D1B6A
square
#8D771B #1B8D3E #1B318D #8D1B6A
split-complementary
#8D771B #1B6A8D #3E1B8D
monochromatic
#262007 #5A4C11 #8D771B #C0A225 #DCBF47

Accessibility & contrast

On white

4.39
#8D771B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D771B#FFFFFF#000000##000000
##8D771B1.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)
#847505
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#996D66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8d771b;
/* rgb */ color: rgb(141, 119, 27);
/* oklch */ color: oklch(57.4% 0.108 94.7);
Tailwind
colors: {
  custom: {
    50: '#b29d60',
    500: '#8d771b',
    950: '#000000',
  },
}
SCSS
$custom: #8d771b;
$custom-light: #b29d60;
$custom-dark: #000000;
JSON
{
  "hex": "#8d771b",
  "rgb": {
    "r": 141,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 48.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57391,
    "c": 0.10842,
    "h": 94.7
  },
  "luminance": 0.18936
}

Semantic roles & 50–950 ramp

primary
#8D771B
secondary
#465DBD
accent
#5FEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D771B

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

Preview Lab → · Contrast checker → · Palette generator →

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