#8D981F#8D981F

#8D981F is a light, vivid yellow. Relative luminance 0.282; OKLCH L 64.9% C 0.137 H 115.0°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8D981F
RGBrgb(141, 152, 31)
HSLhsl(65, 66%, 36%)
HSVhsv(65, 80%, 60%)
CMYKcmyk(7.2%, 0%, 79.6%, 40.4%)
CIE-LABlab(60.09, -18.83, 56.98)
CIE-LCHlch(60.09, 60.02, 108.29°)
OKLaboklab(64.95% -0.0579 0.1243)
OKLCHoklch(64.95% 0.137 115)
XYZxyz(22.4607, 28.2185, 5.5596)
Luminance0.2822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D981F #2A1F98
analogous
#98661F #8D981F #50981F
triadic
#8D981F #1F8D98 #981F8D
tetradic
#8D981F #1F9866 #2A1F98 #981F50
square
#8D981F #1F9866 #2A1F98 #981F50
split-complementary
#8D981F #1F5098 #661F98
monochromatic
#2F320A #5E6515 #8D981F #BCCB29 #D0DC55

Accessibility & contrast

On white

3.16
#8D981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#8D981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D981F
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D981F#FFFFFF#000000##000000
##8D981F1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d981f;
/* rgb */ color: rgb(141, 152, 31);
/* oklch */ color: oklch(64.9% 0.137 115.0);
Tailwind
colors: {
  custom: {
    50: '#b2b666',
    500: '#8d981f',
    950: '#000000',
  },
}
SCSS
$custom: #8d981f;
$custom-light: #b2b666;
$custom-dark: #000000;
JSON
{
  "hex": "#8d981f",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 65.455,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64947,
    "c": 0.13714,
    "h": 115
  },
  "luminance": 0.28218
}

Semantic roles & 50–950 ramp

primary
#8D981F
secondary
#5D53C0
accent
#3FE94E
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D981F

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

Preview Lab → · Contrast checker → · Palette generator →

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