#8E7D2D#8E7D2D

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

Color values

HEX#8E7D2D
RGBrgb(142, 125, 45)
HSLhsl(49, 52%, 37%)
HSVhsv(49, 68%, 56%)
CMYKcmyk(0%, 12%, 68.3%, 44.3%)
CIE-LABlab(52.52, -3.17, 44.38)
CIE-LCHlch(52.52, 44.49, 94.09°)
OKLaboklab(58.96% -0.0125 0.1002)
OKLCHoklch(58.96% 0.101 97.1)
XYZxyz(18.9635, 20.6084, 5.4611)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D2D #2D3E8E
analogous
#8E4D2D #8E7D2D #6F8E2D
triadic
#8E7D2D #2D8E7D #7D2D8E
tetradic
#8E7D2D #2D8E4D #2D3E8E #8E2D6F
square
#8E7D2D #2D8E4D #2D3E8E #8E2D6F
split-complementary
#8E7D2D #2D6F8E #4D2D8E
monochromatic
#312B10 #60541E #8E7D2D #BCA63C #CFBC67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7D2D#FFFFFF#000000##000000
##8E7D2D1.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)
#897A23
Deuteranopia (green-blind)
#8E8031
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d2d;
/* rgb */ color: rgb(142, 125, 45);
/* oklch */ color: oklch(59.0% 0.101 97.1);
Tailwind
colors: {
  custom: {
    50: '#b2a26a',
    500: '#8e7d2d',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d2d;
$custom-light: #b2a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d2d",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 49.485,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58962,
    "c": 0.10097,
    "h": 97.1
  },
  "luminance": 0.20607
}

Semantic roles & 50–950 ramp

primary
#8E7D2D
secondary
#6170B5
accent
#66DB4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8E7D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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