#8E971D#8E971D

#8E971D is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.8% C 0.137 H 114.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8E971D
RGBrgb(142, 151, 29)
HSLhsl(64, 68%, 35%)
HSVhsv(64, 81%, 59%)
CMYKcmyk(6%, 0%, 80.8%, 40.8%)
CIE-LABlab(59.86, -17.95, 57.41)
CIE-LCHlch(59.86, 60.16, 107.36°)
OKLaboklab(64.79% -0.0557 0.1249)
OKLCHoklch(64.79% 0.137 114)
XYZxyz(22.4444, 27.9732, 5.3792)
Luminance0.2797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E971D #261D97
analogous
#97631D #8E971D #51971D
triadic
#8E971D #1D8E97 #971D8E
tetradic
#8E971D #1D9763 #261D97 #971D51
square
#8E971D #1D9763 #261D97 #971D51
split-complementary
#8E971D #1D5197 #631D97
monochromatic
#2D3009 #5E6413 #8E971D #BECA27 #D3DE51

Accessibility & contrast

On white

3.18
#8E971D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8E971D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E971D
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E971D#FFFFFF#000000##000000
##8E971D1.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#A29129
Tritanopia (blue-blind)
#988E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8e971d;
/* rgb */ color: rgb(142, 151, 29);
/* oklch */ color: oklch(64.8% 0.137 114.0);
Tailwind
colors: {
  custom: {
    50: '#b3b565',
    500: '#8e971d',
    950: '#000000',
  },
}
SCSS
$custom: #8e971d;
$custom-light: #b3b565;
$custom-dark: #000000;
JSON
{
  "hex": "#8e971d",
  "rgb": {
    "r": 142,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 64.426,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64786,
    "c": 0.1367,
    "h": 114
  },
  "luminance": 0.27973
}

Semantic roles & 50–950 ramp

primary
#8E971D
secondary
#584FC0
accent
#3DEB4A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E971D

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

Preview Lab → · Contrast checker → · Palette generator →

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