#8D971F#8D971F

#8D971F is a light, vivid yellow. Relative luminance 0.279; OKLCH L 64.7% C 0.136 H 114.5°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8D971F
RGBrgb(141, 151, 31)
HSLhsl(65, 66%, 36%)
HSVhsv(65, 79%, 59%)
CMYKcmyk(6.6%, 0%, 79.5%, 40.8%)
CIE-LABlab(59.79, -18.32, 56.72)
CIE-LCHlch(59.79, 59.61, 107.90°)
OKLaboklab(64.71% -0.0565 0.1238)
OKLCHoklch(64.71% 0.136 114.5)
XYZxyz(22.2991, 27.8953, 5.5057)
Luminance0.2789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D971F #291F97
analogous
#97651F #8D971F #51971F
triadic
#8D971F #1F8D97 #971F8D
tetradic
#8D971F #1F9765 #291F97 #971F51
square
#8D971F #1F9765 #291F97 #971F51
split-complementary
#8D971F #1F5197 #651F97
monochromatic
#2E310A #5E6415 #8D971F #BCCA29 #D1DC54

Accessibility & contrast

On white

3.19
#8D971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#8D971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D971F
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D971F#FFFFFF#000000##000000
##8D971F1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#A2912A
Tritanopia (blue-blind)
#978E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8d971f;
/* rgb */ color: rgb(141, 151, 31);
/* oklch */ color: oklch(64.7% 0.136 114.5);
Tailwind
colors: {
  custom: {
    50: '#b2b566',
    500: '#8d971f',
    950: '#000000',
  },
}
SCSS
$custom: #8d971f;
$custom-light: #b2b566;
$custom-dark: #000000;
JSON
{
  "hex": "#8d971f",
  "rgb": {
    "r": 141,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 65,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64713,
    "c": 0.13604,
    "h": 114.5
  },
  "luminance": 0.27895
}

Semantic roles & 50–950 ramp

primary
#8D971F
secondary
#5B52BF
accent
#3FE94D
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D971F

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

Preview Lab → · Contrast checker → · Palette generator →

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