#8E981C#8E981C

#8E981C 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#8E981C
RGBrgb(142, 152, 28)
HSLhsl(65, 69%, 35%)
HSVhsv(65, 82%, 60%)
CMYKcmyk(6.6%, 0%, 81.6%, 40.4%)
CIE-LABlab(60.15, -18.50, 57.96)
CIE-LCHlch(60.15, 60.84, 107.71°)
OKLaboklab(65.02% -0.0573 0.1258)
OKLCHoklch(65.02% 0.138 114.5)
XYZxyz(22.5939, 28.2915, 5.3690)
Luminance0.2829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E981C #261C98
analogous
#98641C #8E981C #50981C
triadic
#8E981C #1C8E98 #981C8E
tetradic
#8E981C #1C9864 #261C98 #981C50
square
#8E981C #1C9864 #261C98 #981C50
split-complementary
#8E981C #1C5098 #641C98
monochromatic
#2D3109 #5E6412 #8E981C #BECC26 #D3DF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E981C#FFFFFF#000000##000000
##8E981C1.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)
#A39228
Tritanopia (blue-blind)
#988F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8e981c;
/* rgb */ color: rgb(142, 152, 28);
/* oklch */ color: oklch(65.0% 0.138 114.5);
Tailwind
colors: {
  custom: {
    50: '#b3b665',
    500: '#8e981c',
    950: '#000000',
  },
}
SCSS
$custom: #8e981c;
$custom-light: #b3b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8e981c",
  "rgb": {
    "r": 142,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 64.839,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.65015,
    "c": 0.13824,
    "h": 114.5
  },
  "luminance": 0.28291
}

Semantic roles & 50–950 ramp

primary
#8E981C
secondary
#584EC1
accent
#3CEC4A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E981C

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

Preview Lab → · Contrast checker → · Palette generator →

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