#8E7B1A#8E7B1A

#8E7B1A is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.4% C 0.112 H 97.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E7B1A
RGBrgb(142, 123, 26)
HSLhsl(50, 69%, 33%)
HSVhsv(50, 82%, 56%)
CMYKcmyk(0%, 13.4%, 81.7%, 44.3%)
CIE-LABlab(51.83, -2.99, 51.21)
CIE-LCHlch(51.83, 51.30, 93.34°)
OKLaboklab(58.38% -0.0141 0.1109)
OKLCHoklch(58.38% 0.112 97.3)
XYZxyz(18.4257, 19.9923, 3.8655)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7B1A #1A2D8E
analogous
#8E411A #8E7B1A #678E1A
triadic
#8E7B1A #1A8E7B #7B1A8E
tetradic
#8E7B1A #1A8E41 #1A2D8E #8E1A67
square
#8E7B1A #1A8E41 #1A2D8E #8E1A67
split-complementary
#8E7B1A #1A678E #411A8E
monochromatic
#272107 #5A4E11 #8E7B1A #C2A823 #DDC445

Accessibility & contrast

On white

4.20
#8E7B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8E7B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7B1A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7B1A#FFFFFF#000000##000000
##8E7B1A1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#8D7E21
Tritanopia (blue-blind)
#9A7169
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e7b1a;
/* rgb */ color: rgb(142, 123, 26);
/* oklch */ color: oklch(58.4% 0.112 97.3);
Tailwind
colors: {
  custom: {
    50: '#b3a060',
    500: '#8e7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7b1a;
$custom-light: #b3a060;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7b1a",
  "rgb": {
    "r": 142,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 50.172,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58375,
    "c": 0.11183,
    "h": 97.3
  },
  "luminance": 0.19991
}

Semantic roles & 50–950 ramp

primary
#8E7B1A
secondary
#4559BE
accent
#59EC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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