#8B981C#8B981C

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

Color values

HEX#8B981C
RGBrgb(139, 152, 28)
HSLhsl(66, 69%, 35%)
HSVhsv(66, 82%, 60%)
CMYKcmyk(8.6%, 0%, 81.6%, 40.4%)
CIE-LABlab(59.92, -19.83, 57.66)
CIE-LCHlch(59.92, 60.97, 108.98°)
OKLaboklab(64.77% -0.0607 0.1253)
OKLCHoklch(64.77% 0.139 115.9)
XYZxyz(22.0859, 28.0296, 5.3452)
Luminance0.2803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B981C #291C98
analogous
#98671C #8B981C #4D981C
triadic
#8B981C #1C8B98 #981C8B
tetradic
#8B981C #1C9867 #291C98 #981C4D
square
#8B981C #1C9867 #291C98 #981C4D
split-complementary
#8B981C #1C4D98 #671C98
monochromatic
#2C3109 #5C6412 #8B981C #BACC26 #D0DF50

Accessibility & contrast

On white

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

On black

6.61
#8B981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B981C
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B981C#FFFFFF#000000##000000
##8B981C1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b981c;
/* rgb */ color: rgb(139, 152, 28);
/* oklch */ color: oklch(64.8% 0.139 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b665',
    500: '#8b981c',
    950: '#000000',
  },
}
SCSS
$custom: #8b981c;
$custom-light: #b0b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8b981c",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 66.29,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64767,
    "c": 0.13926,
    "h": 115.9
  },
  "luminance": 0.28029
}

Semantic roles & 50–950 ramp

primary
#8B981C
secondary
#5B4EC1
accent
#3CEC4E
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B981C

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

Preview Lab → · Contrast checker → · Palette generator →

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