#8A971A#8A971A

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

Color values

HEX#8A971A
RGBrgb(138, 151, 26)
HSLhsl(66, 71%, 35%)
HSVhsv(66, 83%, 59%)
CMYKcmyk(8.6%, 0%, 82.8%, 40.8%)
CIE-LABlab(59.54, -19.83, 57.85)
CIE-LCHlch(59.54, 61.16, 108.92°)
OKLaboklab(64.44% -0.0608 0.1254)
OKLCHoklch(64.44% 0.139 115.9)
XYZxyz(21.7349, 27.6114, 5.1616)
Luminance0.2761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A971A #271A97
analogous
#97661A #8A971A #4C971A
triadic
#8A971A #1A8A97 #971A8A
tetradic
#8A971A #1A9766 #271A97 #971A4C
square
#8A971A #1A9766 #271A97 #971A4C
split-complementary
#8A971A #1A4C97 #661A97
monochromatic
#2B2F08 #5A6311 #8A971A #BACB23 #D1E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A971A#FFFFFF#000000##000000
##8A971A1.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)
#A19027
Tritanopia (blue-blind)
#938E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a971a;
/* rgb */ color: rgb(138, 151, 26);
/* oklch */ color: oklch(64.4% 0.139 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b564',
    500: '#8a971a',
    950: '#000000',
  },
}
SCSS
$custom: #8a971a;
$custom-light: #b0b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8a971a",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 66.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6444,
    "c": 0.13939,
    "h": 115.9
  },
  "luminance": 0.27611
}

Semantic roles & 50–950 ramp

primary
#8A971A
secondary
#574BC2
accent
#3AED4D
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A971A

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

Preview Lab → · Contrast checker → · Palette generator →

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