#8D971C#8D971C

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

Color values

HEX#8D971C
RGBrgb(141, 151, 28)
HSLhsl(65, 69%, 35%)
HSVhsv(65, 81%, 59%)
CMYKcmyk(6.6%, 0%, 81.5%, 40.8%)
CIE-LABlab(59.78, -18.43, 57.60)
CIE-LCHlch(59.78, 60.48, 107.75°)
OKLaboklab(64.7% -0.057 0.1251)
OKLCHoklch(64.7% 0.137 114.5)
XYZxyz(22.2614, 27.8802, 5.3071)
Luminance0.2788 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D971C #261C97
analogous
#97631C #8D971C #50971C
triadic
#8D971C #1C8D97 #971C8D
tetradic
#8D971C #1C9763 #261C97 #971C50
square
#8D971C #1C9763 #261C97 #971C50
split-complementary
#8D971C #1C5097 #631C97
monochromatic
#2D3009 #5D6312 #8D971C #BDCB26 #D3DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8d971c;
/* rgb */ color: rgb(141, 151, 28);
/* oklch */ color: oklch(64.7% 0.137 114.5);
Tailwind
colors: {
  custom: {
    50: '#b2b565',
    500: '#8d971c',
    950: '#000000',
  },
}
SCSS
$custom: #8d971c;
$custom-light: #b2b565;
$custom-dark: #000000;
JSON
{
  "hex": "#8d971c",
  "rgb": {
    "r": 141,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 64.878,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.64698,
    "c": 0.13748,
    "h": 114.5
  },
  "luminance": 0.2788
}

Semantic roles & 50–950 ramp

primary
#8D971C
secondary
#574EC1
accent
#3CEC4A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D971C

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

Preview Lab → · Contrast checker → · Palette generator →

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