#8E871A#8E871A

#8E871A is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.122 H 105.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8E871A
RGBrgb(142, 135, 26)
HSLhsl(56, 69%, 33%)
HSVhsv(56, 82%, 56%)
CMYKcmyk(0%, 4.9%, 81.7%, 44.3%)
CIE-LABlab(55.23, -9.60, 54.22)
CIE-LCHlch(55.23, 55.06, 100.04°)
OKLaboklab(61.08% -0.0327 0.1174)
OKLCHoklch(61.08% 0.122 105.6)
XYZxyz(20.0066, 23.1541, 4.3924)
Luminance0.2315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E871A #1A218E
analogous
#8E4D1A #8E871A #5B8E1A
triadic
#8E871A #1A8E87 #871A8E
tetradic
#8E871A #1A8E4D #1A218E #8E1A5B
square
#8E871A #1A8E4D #1A218E #8E1A5B
split-complementary
#8E871A #1A5B8E #4D1A8E
monochromatic
#272507 #5A5611 #8E871A #C2B823 #DDD445

Accessibility & contrast

On white

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

On black

5.63
#8E871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E871A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E871A#FFFFFF#000000##000000
##8E871A1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e871a;
/* rgb */ color: rgb(142, 135, 26);
/* oklch */ color: oklch(61.1% 0.122 105.6);
Tailwind
colors: {
  custom: {
    50: '#b3a962',
    500: '#8e871a',
    950: '#000000',
  },
}
SCSS
$custom: #8e871a;
$custom-light: #b3a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8e871a",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 56.379,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61077,
    "c": 0.12189,
    "h": 105.6
  },
  "luminance": 0.23153
}

Semantic roles & 50–950 ramp

primary
#8E871A
secondary
#454DBE
accent
#47EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E871A

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

Preview Lab → · Contrast checker → · Palette generator →

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