#8E7D1A#8E7D1A

#8E7D1A is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.113 H 98.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8E7D1A
RGBrgb(142, 125, 26)
HSLhsl(51, 69%, 33%)
HSVhsv(51, 82%, 56%)
CMYKcmyk(0%, 12%, 81.7%, 44.3%)
CIE-LABlab(52.39, -4.10, 51.71)
CIE-LCHlch(52.39, 51.88, 94.54°)
OKLaboklab(58.82% -0.0173 0.112)
OKLCHoklch(58.82% 0.113 98.8)
XYZxyz(18.6764, 20.4936, 3.9490)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D1A #1A2B8E
analogous
#8E431A #8E7D1A #658E1A
triadic
#8E7D1A #1A8E7D #7D1A8E
tetradic
#8E7D1A #1A8E43 #1A2B8E #8E1A65
square
#8E7D1A #1A8E43 #1A2B8E #8E1A65
split-complementary
#8E7D1A #1A658E #431A8E
monochromatic
#272207 #5A4F11 #8E7D1A #C2AB23 #DDC745

Accessibility & contrast

On white

4.12
#8E7D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8E7D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7D1A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7D1A#FFFFFF#000000##000000
##8E7D1A1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d1a;
/* rgb */ color: rgb(142, 125, 26);
/* oklch */ color: oklch(58.8% 0.113 98.8);
Tailwind
colors: {
  custom: {
    50: '#b3a260',
    500: '#8e7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d1a;
$custom-light: #b3a260;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d1a",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 51.207,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.11334,
    "h": 98.8
  },
  "luminance": 0.20493
}

Semantic roles & 50–950 ramp

primary
#8E7D1A
secondary
#4557BE
accent
#56EC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110F05
muted
#807E79

Preview Lab

Preview with #8E7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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