#8B981F#8B981F

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

Color values

HEX#8B981F
RGBrgb(139, 152, 31)
HSLhsl(66, 66%, 36%)
HSVhsv(66, 80%, 60%)
CMYKcmyk(8.6%, 0%, 79.6%, 40.4%)
CIE-LABlab(59.93, -19.71, 56.78)
CIE-LCHlch(59.93, 60.11, 109.14°)
OKLaboklab(64.78% -0.0602 0.124)
OKLCHoklch(64.78% 0.138 115.9)
XYZxyz(22.1236, 28.0447, 5.5438)
Luminance0.2804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B981F #2C1F98
analogous
#98681F #8B981F #4E981F
triadic
#8B981F #1F8B98 #981F8B
tetradic
#8B981F #1F9868 #2C1F98 #981F4E
square
#8B981F #1F9868 #2C1F98 #981F4E
split-complementary
#8B981F #1F4E98 #681F98
monochromatic
#2E320A #5D6515 #8B981F #B9CB29 #CEDC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B981F#FFFFFF#000000##000000
##8B981F1.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)
#A2912B
Tritanopia (blue-blind)
#948F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b981f;
/* rgb */ color: rgb(139, 152, 31);
/* oklch */ color: oklch(64.8% 0.138 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b666',
    500: '#8b981f',
    950: '#000000',
  },
}
SCSS
$custom: #8b981f;
$custom-light: #b0b666;
$custom-dark: #000000;
JSON
{
  "hex": "#8b981f",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 66.446,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64782,
    "c": 0.13782,
    "h": 115.9
  },
  "luminance": 0.28044
}

Semantic roles & 50–950 ramp

primary
#8B981F
secondary
#5F53C0
accent
#3FE951
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B981F

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

Preview Lab → · Contrast checker → · Palette generator →

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