#8A972A#8A972A

#8A972A is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.5% C 0.131 H 116.1°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A972A
RGBrgb(138, 151, 42)
HSLhsl(67, 56%, 38%)
HSVhsv(67, 72%, 59%)
CMYKcmyk(8.6%, 0%, 72.2%, 40.8%)
CIE-LABlab(59.62, -19.11, 52.70)
CIE-LCHlch(59.62, 56.06, 109.93°)
OKLaboklab(64.54% -0.0575 0.1173)
OKLCHoklch(64.54% 0.131 116.1)
XYZxyz(21.9663, 27.7040, 6.3803)
Luminance0.2770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A972A #372A97
analogous
#976D2A #8A972A #53972A
triadic
#8A972A #2A8A97 #972A8A
tetradic
#8A972A #2A976D #372A97 #972A53
square
#8A972A #2A976D #372A97 #972A53
split-complementary
#8A972A #2A5397 #6D2A97
monochromatic
#32370F #5E671D #8A972A #B6C737 #C8D567

Accessibility & contrast

On white

3.21
#8A972A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#8A972A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A972A
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A972A#FFFFFF#000000##000000
##8A972A1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F17
Deuteranopia (green-blind)
#A19033
Tritanopia (blue-blind)
#938E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a972a;
/* rgb */ color: rgb(138, 151, 42);
/* oklch */ color: oklch(64.5% 0.131 116.1);
Tailwind
colors: {
  custom: {
    50: '#afb56b',
    500: '#8a972a',
    950: '#000000',
  },
}
SCSS
$custom: #8a972a;
$custom-light: #afb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a972a",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 42
  },
  "hsl": {
    "h": 67.156,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64535,
    "c": 0.13068,
    "h": 116.1
  },
  "luminance": 0.27704
}

Semantic roles & 50–950 ramp

primary
#8A972A
secondary
#6D62BB
accent
#48E05A
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A972A

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

Preview Lab → · Contrast checker → · Palette generator →

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