#8C981A#8C981A

#8C981A is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.8% C 0.140 H 115.4°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8C981A
RGBrgb(140, 152, 26)
HSLhsl(66, 71%, 35%)
HSVhsv(66, 83%, 60%)
CMYKcmyk(7.9%, 0%, 82.9%, 40.4%)
CIE-LABlab(59.99, -19.46, 58.30)
CIE-LCHlch(59.99, 61.46, 108.46°)
OKLaboklab(64.84% -0.0599 0.1263)
OKLCHoklch(64.84% 0.14 115.4)
XYZxyz(22.2306, 28.1069, 5.2312)
Luminance0.2811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C981A #261A98
analogous
#98651A #8C981A #4D981A
triadic
#8C981A #1A8C98 #981A8C
tetradic
#8C981A #1A9865 #261A98 #981A4D
square
#8C981A #1A9865 #261A98 #981A4D
split-complementary
#8C981A #1A4D98 #651A98
monochromatic
#2C2F08 #5C6411 #8C981A #BCCC23 #D2E04C

Accessibility & contrast

On white

3.17
#8C981A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#8C981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C981A
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C981A#FFFFFF#000000##000000
##8C981A1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A39127
Tritanopia (blue-blind)
#968F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8c981a;
/* rgb */ color: rgb(140, 152, 26);
/* oklch */ color: oklch(64.8% 0.140 115.4);
Tailwind
colors: {
  custom: {
    50: '#b1b664',
    500: '#8c981a',
    950: '#000000',
  },
}
SCSS
$custom: #8c981a;
$custom-light: #b1b664;
$custom-dark: #000000;
JSON
{
  "hex": "#8c981a",
  "rgb": {
    "r": 140,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 65.714,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6484,
    "c": 0.13979,
    "h": 115.4
  },
  "luminance": 0.28107
}

Semantic roles & 50–950 ramp

primary
#8C981A
secondary
#574BC2
accent
#3AEE4B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8C981A

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

Preview Lab → · Contrast checker → · Palette generator →

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