#8E871F#8E871F

#8E871F is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.119 H 105.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8E871F
RGBrgb(142, 135, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 56%)
CMYKcmyk(0%, 4.9%, 78.2%, 44.3%)
CIE-LABlab(55.26, -9.41, 52.63)
CIE-LCHlch(55.26, 53.47, 100.13°)
OKLaboklab(61.11% -0.0317 0.115)
OKLCHoklch(61.11% 0.119 105.4)
XYZxyz(20.0675, 23.1784, 4.7129)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E871F #1F268E
analogous
#8E501F #8E871F #5E8E1F
triadic
#8E871F #1F8E87 #871F8E
tetradic
#8E871F #1F8E50 #1F268E #8E1F5E
square
#8E871F #1F8E50 #1F268E #8E1F5E
split-complementary
#8E871F #1F5E8E #501F8E
monochromatic
#2A2709 #5C5714 #8E871F #C0B72A #D9D04F

Accessibility & contrast

On white

3.73
#8E871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#8E871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E871F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E871F#FFFFFF#000000##000000
##8E871F1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#997D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8e871f;
/* rgb */ color: rgb(142, 135, 31);
/* oklch */ color: oklch(61.1% 0.119 105.4);
Tailwind
colors: {
  custom: {
    50: '#b3a964',
    500: '#8e871f',
    950: '#000000',
  },
}
SCSS
$custom: #8e871f;
$custom-light: #b3a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8e871f",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 56.216,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61105,
    "c": 0.1193,
    "h": 105.4
  },
  "luminance": 0.23178
}

Semantic roles & 50–950 ramp

primary
#8E871F
secondary
#4D54BB
accent
#4BE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E871F

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

Preview Lab → · Contrast checker → · Palette generator →

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