#8B981A#8B981A

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

Color values

HEX#8B981A
RGBrgb(139, 152, 26)
HSLhsl(66, 71%, 35%)
HSVhsv(66, 83%, 60%)
CMYKcmyk(8.6%, 0%, 82.9%, 40.4%)
CIE-LABlab(59.91, -19.90, 58.20)
CIE-LCHlch(59.91, 61.51, 108.87°)
OKLaboklab(64.76% -0.0611 0.1261)
OKLCHoklch(64.76% 0.14 115.8)
XYZxyz(22.0628, 28.0204, 5.2233)
Luminance0.2802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B981A #271A98
analogous
#98661A #8B981A #4C981A
triadic
#8B981A #1A8B98 #981A8B
tetradic
#8B981A #1A9866 #271A98 #981A4C
square
#8B981A #1A9866 #271A98 #981A4C
split-complementary
#8B981A #1A4C98 #661A98
monochromatic
#2B2F08 #5B6411 #8B981A #BBCC23 #D1E04C

Accessibility & contrast

On white

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

On black

6.60
#8B981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B981A
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B981A#FFFFFF#000000##000000
##8B981A1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A29127
Tritanopia (blue-blind)
#948F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b981a;
/* rgb */ color: rgb(139, 152, 26);
/* oklch */ color: oklch(64.8% 0.140 115.8);
Tailwind
colors: {
  custom: {
    50: '#b1b664',
    500: '#8b981a',
    950: '#000000',
  },
}
SCSS
$custom: #8b981a;
$custom-light: #b1b664;
$custom-dark: #000000;
JSON
{
  "hex": "#8b981a",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 66.19,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64758,
    "c": 0.14014,
    "h": 115.8
  },
  "luminance": 0.2802
}

Semantic roles & 50–950 ramp

primary
#8B981A
secondary
#584BC2
accent
#3AEE4D
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B981A

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

Preview Lab → · Contrast checker → · Palette generator →

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