#8E7E1F#8E7E1F

#8E7E1F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.111 H 99.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8E7E1F
RGBrgb(142, 126, 31)
HSLhsl(51, 64%, 34%)
HSVhsv(51, 78%, 56%)
CMYKcmyk(0%, 11.3%, 78.2%, 44.3%)
CIE-LABlab(52.70, -4.46, 50.28)
CIE-LCHlch(52.70, 50.47, 95.07°)
OKLaboklab(59.07% -0.0178 0.11)
OKLCHoklch(59.07% 0.111 99.2)
XYZxyz(18.8644, 20.7724, 4.3119)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E1F #1F2F8E
analogous
#8E471F #8E7E1F #678E1F
triadic
#8E7E1F #1F8E7E #7E1F8E
tetradic
#8E7E1F #1F8E47 #1F2F8E #8E1F67
square
#8E7E1F #1F8E47 #1F2F8E #8E1F67
split-complementary
#8E7E1F #1F678E #471F8E
monochromatic
#2A2509 #5C5114 #8E7E1F #C0AB2A #D9C54F

Accessibility & contrast

On white

4.07
#8E7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8E7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7E1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7E1F#FFFFFF#000000##000000
##8E7E1F1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#9A746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e1f;
/* rgb */ color: rgb(142, 126, 31);
/* oklch */ color: oklch(59.1% 0.111 99.2);
Tailwind
colors: {
  custom: {
    50: '#b3a363',
    500: '#8e7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e1f;
$custom-light: #b3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e1f",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 51.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59074,
    "c": 0.11142,
    "h": 99.2
  },
  "luminance": 0.20771
}

Semantic roles & 50–950 ramp

primary
#8E7E1F
secondary
#4D5DBB
accent
#59E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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