#8E7D2F#8E7D2F

#8E7D2F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.099 H 96.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8E7D2F
RGBrgb(142, 125, 47)
HSLhsl(49, 50%, 37%)
HSVhsv(49, 67%, 56%)
CMYKcmyk(0%, 12%, 66.9%, 44.3%)
CIE-LABlab(52.54, -3.04, 43.48)
CIE-LCHlch(52.54, 43.59, 94.00°)
OKLaboklab(58.98% -0.0119 0.0986)
OKLCHoklch(58.98% 0.099 96.9)
XYZxyz(19.0029, 20.6242, 5.6687)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D2F #2F408E
analogous
#8E4D2F #8E7D2F #708E2F
triadic
#8E7D2F #2F8E7D #7D2F8E
tetradic
#8E7D2F #2F8E4D #2F408E #8E2F70
square
#8E7D2F #2F8E4D #2F408E #8E2F70
split-complementary
#8E7D2F #2F708E #4D2F8E
monochromatic
#322C11 #605520 #8E7D2F #BCA53E #CEBC6A

Accessibility & contrast

On white

4.10
#8E7D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8E7D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7D2F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7D2F#FFFFFF#000000##000000
##8E7D2F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A26
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#99746D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d2f;
/* rgb */ color: rgb(142, 125, 47);
/* oklch */ color: oklch(59.0% 0.099 96.9);
Tailwind
colors: {
  custom: {
    50: '#b2a26b',
    500: '#8e7d2f',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d2f;
$custom-light: #b2a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d2f",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 49.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.58981,
    "c": 0.09936,
    "h": 96.9
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#8E7D2F
secondary
#6473B5
accent
#67DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8E7D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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