#8E7D2A#8E7D2A

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

Color values

HEX#8E7D2A
RGBrgb(142, 125, 42)
HSLhsl(50, 54%, 36%)
HSVhsv(50, 70%, 56%)
CMYKcmyk(0%, 12%, 70.4%, 44.3%)
CIE-LABlab(52.49, -3.35, 45.68)
CIE-LCHlch(52.49, 45.80, 94.20°)
OKLaboklab(58.93% -0.0134 0.1024)
OKLCHoklch(58.93% 0.103 97.5)
XYZxyz(18.9078, 20.5861, 5.1676)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D2A #2A3B8E
analogous
#8E4B2A #8E7D2A #6D8E2A
triadic
#8E7D2A #2A8E7D #7D2A8E
tetradic
#8E7D2A #2A8E4B #2A3B8E #8E2A6D
square
#8E7D2A #2A8E4B #2A3B8E #8E2A6D
split-complementary
#8E7D2A #2A6D8E #4B2A8E
monochromatic
#302A0E #5F531C #8E7D2A #BDA738 #D1BE62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7D2A#FFFFFF#000000##000000
##8E7D2A1.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)
#8A7A1F
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d2a;
/* rgb */ color: rgb(142, 125, 42);
/* oklch */ color: oklch(58.9% 0.103 97.5);
Tailwind
colors: {
  custom: {
    50: '#b2a269',
    500: '#8e7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d2a;
$custom-light: #b2a269;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d2a",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 49.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58934,
    "c": 0.1033,
    "h": 97.5
  },
  "luminance": 0.20585
}

Semantic roles & 50–950 ramp

primary
#8E7D2A
secondary
#5D6CB6
accent
#63DE4A
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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