#8A971C#8A971C

#8A971C is a light, vivid yellow. Relative luminance 0.276; OKLCH L 64.5% C 0.139 H 115.9°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A971C
RGBrgb(138, 151, 28)
HSLhsl(66, 69%, 35%)
HSVhsv(66, 81%, 59%)
CMYKcmyk(8.6%, 0%, 81.5%, 40.8%)
CIE-LABlab(59.54, -19.76, 57.30)
CIE-LCHlch(59.54, 60.61, 109.02°)
OKLaboklab(64.45% -0.0605 0.1246)
OKLCHoklch(64.45% 0.139 115.9)
XYZxyz(21.7581, 27.6207, 5.2835)
Luminance0.2762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A971C #291C97
analogous
#97661C #8A971C #4D971C
triadic
#8A971C #1C8A97 #971C8A
tetradic
#8A971C #1C9766 #291C97 #971C4D
square
#8A971C #1C9766 #291C97 #971C4D
split-complementary
#8A971C #1C4D97 #661C97
monochromatic
#2C3009 #5B6312 #8A971C #B9CB26 #CFDE4F

Accessibility & contrast

On white

3.22
#8A971C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#8A971C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A971C
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A971C#FFFFFF#000000##000000
##8A971C1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#A19028
Tritanopia (blue-blind)
#938E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a971c;
/* rgb */ color: rgb(138, 151, 28);
/* oklch */ color: oklch(64.5% 0.139 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b565',
    500: '#8a971c',
    950: '#000000',
  },
}
SCSS
$custom: #8a971c;
$custom-light: #b0b565;
$custom-dark: #000000;
JSON
{
  "hex": "#8a971c",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 66.341,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.6445,
    "c": 0.1385,
    "h": 115.9
  },
  "luminance": 0.2762
}

Semantic roles & 50–950 ramp

primary
#8A971C
secondary
#5A4EC1
accent
#3CEC4F
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A971C

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

Preview Lab → · Contrast checker → · Palette generator →

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