#8D971A#8D971A

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

Color values

HEX#8D971A
RGBrgb(141, 151, 26)
HSLhsl(65, 71%, 35%)
HSVhsv(65, 83%, 59%)
CMYKcmyk(6.6%, 0%, 82.8%, 40.8%)
CIE-LABlab(59.77, -18.50, 58.15)
CIE-LCHlch(59.77, 61.02, 107.65°)
OKLaboklab(64.69% -0.0573 0.1259)
OKLCHoklch(64.69% 0.138 114.5)
XYZxyz(22.2383, 27.8710, 5.1852)
Luminance0.2787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D971A #241A97
analogous
#97631A #8D971A #4F971A
triadic
#8D971A #1A8D97 #971A8D
tetradic
#8D971A #1A9763 #241A97 #971A4F
square
#8D971A #1A9763 #241A97 #971A4F
split-complementary
#8D971A #1A4F97 #631A97
monochromatic
#2B2F08 #5C6311 #8D971A #BECB23 #D4E04B

Accessibility & contrast

On white

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

On black

6.57
#8D971A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D971A
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D971A#FFFFFF#000000##000000
##8D971A1.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d971a;
/* rgb */ color: rgb(141, 151, 26);
/* oklch */ color: oklch(64.7% 0.138 114.5);
Tailwind
colors: {
  custom: {
    50: '#b2b564',
    500: '#8d971a',
    950: '#000000',
  },
}
SCSS
$custom: #8d971a;
$custom-light: #b2b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8d971a",
  "rgb": {
    "r": 141,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 64.8,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.64688,
    "c": 0.13836,
    "h": 114.5
  },
  "luminance": 0.27871
}

Semantic roles & 50–950 ramp

primary
#8D971A
secondary
#544BC2
accent
#3AED49
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D971A

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

Preview Lab → · Contrast checker → · Palette generator →

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