#8E7F1A#8E7F1A

#8E7F1A is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.115 H 100.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8E7F1A
RGBrgb(142, 127, 26)
HSLhsl(52, 69%, 33%)
HSVhsv(52, 82%, 56%)
CMYKcmyk(0%, 10.6%, 81.7%, 44.3%)
CIE-LABlab(52.95, -5.21, 52.21)
CIE-LCHlch(52.95, 52.47, 95.70°)
OKLaboklab(59.27% -0.0204 0.1131)
OKLCHoklch(59.27% 0.115 100.2)
XYZxyz(18.9321, 21.0050, 4.0342)
Luminance0.2100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F1A #1A298E
analogous
#8E451A #8E7F1A #638E1A
triadic
#8E7F1A #1A8E7F #7F1A8E
tetradic
#8E7F1A #1A8E45 #1A298E #8E1A63
square
#8E7F1A #1A8E45 #1A298E #8E1A63
split-complementary
#8E7F1A #1A638E #451A8E
monochromatic
#272207 #5A5111 #8E7F1A #C2AD23 #DDC945

Accessibility & contrast

On white

4.04
#8E7F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8E7F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F1A
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F1A#FFFFFF#000000##000000
##8E7F1A1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#9A756C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7f1a;
/* rgb */ color: rgb(142, 127, 26);
/* oklch */ color: oklch(59.3% 0.115 100.2);
Tailwind
colors: {
  custom: {
    50: '#b3a361',
    500: '#8e7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f1a;
$custom-light: #b3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f1a",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 52.241,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59268,
    "c": 0.11493,
    "h": 100.2
  },
  "luminance": 0.21004
}

Semantic roles & 50–950 ramp

primary
#8E7F1A
secondary
#4555BE
accent
#53EC3C
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8E7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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