#8D971B#8D971B

#8D971B 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#8D971B
RGBrgb(141, 151, 27)
HSLhsl(65, 70%, 35%)
HSVhsv(65, 82%, 59%)
CMYKcmyk(6.6%, 0%, 82.1%, 40.8%)
CIE-LABlab(59.78, -18.47, 57.88)
CIE-LCHlch(59.78, 60.75, 107.70°)
OKLaboklab(64.69% -0.0572 0.1255)
OKLCHoklch(64.69% 0.138 114.5)
XYZxyz(22.2496, 27.8755, 5.2451)
Luminance0.2787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D971B #251B97
analogous
#97631B #8D971B #4F971B
triadic
#8D971B #1B8D97 #971B8D
tetradic
#8D971B #1B9763 #251B97 #971B4F
square
#8D971B #1B9763 #251B97 #971B4F
split-complementary
#8D971B #1B4F97 #631B97
monochromatic
#2C2F08 #5D6312 #8D971B #BDCB24 #D3DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D971B#FFFFFF#000000##000000
##8D971B1.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)
#A29128
Tritanopia (blue-blind)
#978E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8d971b;
/* rgb */ color: rgb(141, 151, 27);
/* oklch */ color: oklch(64.7% 0.138 114.5);
Tailwind
colors: {
  custom: {
    50: '#b2b564',
    500: '#8d971b',
    950: '#000000',
  },
}
SCSS
$custom: #8d971b;
$custom-light: #b2b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8d971b",
  "rgb": {
    "r": 141,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 64.839,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64693,
    "c": 0.13793,
    "h": 114.5
  },
  "luminance": 0.27875
}

Semantic roles & 50–950 ramp

primary
#8D971B
secondary
#564CC1
accent
#3BEC4A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D971B

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

Preview Lab → · Contrast checker → · Palette generator →

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