#8E981D#8E981D

#8E981D is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.0% C 0.138 H 114.5°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8E981D
RGBrgb(142, 152, 29)
HSLhsl(65, 68%, 35%)
HSVhsv(65, 81%, 60%)
CMYKcmyk(6.6%, 0%, 80.9%, 40.4%)
CIE-LABlab(60.16, -18.47, 57.67)
CIE-LCHlch(60.16, 60.56, 107.76°)
OKLaboklab(65.02% -0.0571 0.1254)
OKLCHoklch(65.02% 0.138 114.5)
XYZxyz(22.6060, 28.2964, 5.4331)
Luminance0.2830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E981D #271D98
analogous
#98641D #8E981D #50981D
triadic
#8E981D #1D8E98 #981D8E
tetradic
#8E981D #1D9864 #271D98 #981D50
square
#8E981D #1D9864 #271D98 #981D50
split-complementary
#8E981D #1D5098 #641D98
monochromatic
#2E3109 #5E6513 #8E981D #BECB27 #D2DE52

Accessibility & contrast

On white

3.15
#8E981D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#8E981D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E981D
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E981D#FFFFFF#000000##000000
##8E981D1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A39229
Tritanopia (blue-blind)
#988F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8e981d;
/* rgb */ color: rgb(142, 152, 29);
/* oklch */ color: oklch(65.0% 0.138 114.5);
Tailwind
colors: {
  custom: {
    50: '#b3b665',
    500: '#8e981d',
    950: '#000000',
  },
}
SCSS
$custom: #8e981d;
$custom-light: #b3b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8e981d",
  "rgb": {
    "r": 142,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 64.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.6502,
    "c": 0.13778,
    "h": 114.5
  },
  "luminance": 0.28296
}

Semantic roles & 50–950 ramp

primary
#8E981D
secondary
#5950C1
accent
#3DEB4B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E981D

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

Preview Lab → · Contrast checker → · Palette generator →

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