#8B981B#8B981B

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

Color values

HEX#8B981B
RGBrgb(139, 152, 27)
HSLhsl(66, 70%, 35%)
HSVhsv(66, 82%, 60%)
CMYKcmyk(8.6%, 0%, 82.2%, 40.4%)
CIE-LABlab(59.91, -19.86, 57.93)
CIE-LCHlch(59.91, 61.24, 108.93°)
OKLaboklab(64.76% -0.0609 0.1257)
OKLCHoklch(64.76% 0.14 115.9)
XYZxyz(22.0742, 28.0249, 5.2832)
Luminance0.2802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B981B #281B98
analogous
#98661B #8B981B #4C981B
triadic
#8B981B #1B8B98 #981B8B
tetradic
#8B981B #1B9866 #281B98 #981B4C
square
#8B981B #1B9866 #281B98 #981B4C
split-complementary
#8B981B #1B4C98 #661B98
monochromatic
#2C3009 #5B6412 #8B981B #BBCC24 #D0E04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B981B#FFFFFF#000000##000000
##8B981B1.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: #8b981b;
/* rgb */ color: rgb(139, 152, 27);
/* oklch */ color: oklch(64.8% 0.140 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b665',
    500: '#8b981b',
    950: '#000000',
  },
}
SCSS
$custom: #8b981b;
$custom-light: #b0b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8b981b",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 66.24,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64762,
    "c": 0.13971,
    "h": 115.9
  },
  "luminance": 0.28025
}

Semantic roles & 50–950 ramp

primary
#8B981B
secondary
#594DC2
accent
#3BED4E
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B981B

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

Preview Lab → · Contrast checker → · Palette generator →

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