#8E7D2C#8E7D2C

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

Color values

HEX#8E7D2C
RGBrgb(142, 125, 44)
HSLhsl(50, 53%, 36%)
HSVhsv(50, 69%, 56%)
CMYKcmyk(0%, 12%, 69%, 44.3%)
CIE-LABlab(52.51, -3.23, 44.82)
CIE-LCHlch(52.51, 44.93, 94.13°)
OKLaboklab(58.95% -0.0128 0.101)
OKLCHoklch(58.95% 0.102 97.2)
XYZxyz(18.9444, 20.6008, 5.3609)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D2C #2C3D8E
analogous
#8E4C2C #8E7D2C #6E8E2C
triadic
#8E7D2C #2C8E7D #7D2C8E
tetradic
#8E7D2C #2C8E4C #2C3D8E #8E2C6E
square
#8E7D2C #2C8E4C #2C3D8E #8E2C6E
split-complementary
#8E7D2C #2C6E8E #4C2C8E
monochromatic
#312B0F #5F541E #8E7D2C #BDA63A #CFBD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7D2C#FFFFFF#000000##000000
##8E7D2C1.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)
#897A21
Deuteranopia (green-blind)
#8E8030
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d2c;
/* rgb */ color: rgb(142, 125, 44);
/* oklch */ color: oklch(59.0% 0.102 97.2);
Tailwind
colors: {
  custom: {
    50: '#b2a26a',
    500: '#8e7d2c',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d2c;
$custom-light: #b2a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d2c",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 49.592,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58953,
    "c": 0.10176,
    "h": 97.2
  },
  "luminance": 0.206
}

Semantic roles & 50–950 ramp

primary
#8E7D2C
secondary
#606FB6
accent
#65DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8E7D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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