#8E981A#8E981A

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

Color values

HEX#8E981A
RGBrgb(142, 152, 26)
HSLhsl(65, 71%, 35%)
HSVhsv(65, 83%, 60%)
CMYKcmyk(6.6%, 0%, 82.9%, 40.4%)
CIE-LABlab(60.14, -18.58, 58.50)
CIE-LCHlch(60.14, 61.38, 107.62°)
OKLaboklab(65.01% -0.0576 0.1266)
OKLCHoklch(65.01% 0.139 114.5)
XYZxyz(22.5707, 28.2823, 5.2471)
Luminance0.2828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E981A #241A98
analogous
#98631A #8E981A #4F981A
triadic
#8E981A #1A8E98 #981A8E
tetradic
#8E981A #1A9863 #241A98 #981A4F
square
#8E981A #1A9863 #241A98 #981A4F
split-complementary
#8E981A #1A4F98 #631A98
monochromatic
#2C2F08 #5D6411 #8E981A #BFCC23 #D5E04C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E981A#FFFFFF#000000##000000
##8E981A1.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)
#A39227
Tritanopia (blue-blind)
#988E82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8e981a;
/* rgb */ color: rgb(142, 152, 26);
/* oklch */ color: oklch(65.0% 0.139 114.5);
Tailwind
colors: {
  custom: {
    50: '#b3b664',
    500: '#8e981a',
    950: '#000000',
  },
}
SCSS
$custom: #8e981a;
$custom-light: #b3b664;
$custom-dark: #000000;
JSON
{
  "hex": "#8e981a",
  "rgb": {
    "r": 142,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 64.762,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.65006,
    "c": 0.13912,
    "h": 114.5
  },
  "luminance": 0.28282
}

Semantic roles & 50–950 ramp

primary
#8E981A
secondary
#554BC2
accent
#3AEE48
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E981A

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

Preview Lab → · Contrast checker → · Palette generator →

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