#8E771F#8E771F

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

Color values

HEX#8E771F
RGBrgb(142, 119, 31)
HSLhsl(48, 64%, 34%)
HSVhsv(48, 78%, 56%)
CMYKcmyk(0%, 16.2%, 78.2%, 44.3%)
CIE-LABlab(50.74, -0.53, 48.45)
CIE-LCHlch(50.74, 48.45, 90.63°)
OKLaboklab(57.52% -0.0067 0.1061)
OKLCHoklch(57.52% 0.106 93.6)
XYZxyz(18.0005, 19.0444, 4.0239)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E771F #1F368E
analogous
#8E401F #8E771F #6E8E1F
triadic
#8E771F #1F8E77 #771F8E
tetradic
#8E771F #1F8E40 #1F368E #8E1F6E
square
#8E771F #1F8E40 #1F368E #8E1F6E
split-complementary
#8E771F #1F6E8E #401F8E
monochromatic
#2A2309 #5C4D14 #8E771F #C0A12A #D9BC4F

Accessibility & contrast

On white

4.37
#8E771F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8E771F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E771F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E771F#FFFFFF#000000##000000
##8E771F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84750E
Deuteranopia (green-blind)
#8A7C24
Tritanopia (blue-blind)
#9A6D66
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e771f;
/* rgb */ color: rgb(142, 119, 31);
/* oklch */ color: oklch(57.5% 0.106 93.6);
Tailwind
colors: {
  custom: {
    50: '#b39d62',
    500: '#8e771f',
    950: '#000000',
  },
}
SCSS
$custom: #8e771f;
$custom-light: #b39d62;
$custom-dark: #000000;
JSON
{
  "hex": "#8e771f",
  "rgb": {
    "r": 142,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 47.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57522,
    "c": 0.1063,
    "h": 93.6
  },
  "luminance": 0.19043
}

Semantic roles & 50–950 ramp

primary
#8E771F
secondary
#4D64BB
accent
#63E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8E771F

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

Preview Lab → · Contrast checker → · Palette generator →

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