#8C971D#8C971D

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

Color values

HEX#8C971D
RGBrgb(140, 151, 29)
HSLhsl(65, 68%, 35%)
HSVhsv(65, 81%, 59%)
CMYKcmyk(7.3%, 0%, 80.8%, 40.8%)
CIE-LABlab(59.71, -18.84, 57.21)
CIE-LCHlch(59.71, 60.23, 108.22°)
OKLaboklab(64.62% -0.058 0.1245)
OKLCHoklch(64.62% 0.137 115)
XYZxyz(22.1043, 27.7978, 5.3632)
Luminance0.2780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C971D #281D97
analogous
#97651D #8C971D #4F971D
triadic
#8C971D #1D8C97 #971D8C
tetradic
#8C971D #1D9765 #281D97 #971D4F
square
#8C971D #1D9765 #281D97 #971D4F
split-complementary
#8C971D #1D4F97 #651D97
monochromatic
#2D3009 #5C6413 #8C971D #BCCA27 #D1DE51

Accessibility & contrast

On white

3.20
#8C971D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#8C971D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C971D
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C971D#FFFFFF#000000##000000
##8C971D1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c971d;
/* rgb */ color: rgb(140, 151, 29);
/* oklch */ color: oklch(64.6% 0.137 115.0);
Tailwind
colors: {
  custom: {
    50: '#b1b565',
    500: '#8c971d',
    950: '#000000',
  },
}
SCSS
$custom: #8c971d;
$custom-light: #b1b565;
$custom-dark: #000000;
JSON
{
  "hex": "#8c971d",
  "rgb": {
    "r": 140,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 65.41,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64619,
    "c": 0.13735,
    "h": 115
  },
  "luminance": 0.27797
}

Semantic roles & 50–950 ramp

primary
#8C971D
secondary
#5A4FC0
accent
#3DEB4D
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8C971D

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

Preview Lab → · Contrast checker → · Palette generator →

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