#8A972D#8A972D

#8A972D is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.6% C 0.129 H 116.2°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A972D
RGBrgb(138, 151, 45)
HSLhsl(67, 54%, 38%)
HSVhsv(67, 70%, 59%)
CMYKcmyk(8.6%, 0%, 70.2%, 40.8%)
CIE-LABlab(59.64, -18.94, 51.56)
CIE-LCHlch(59.64, 54.93, 110.17°)
OKLaboklab(64.56% -0.0567 0.1155)
OKLCHoklch(64.56% 0.129 116.2)
XYZxyz(22.0220, 27.7263, 6.6737)
Luminance0.2773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A972D #3A2D97
analogous
#976F2D #8A972D #55972D
triadic
#8A972D #2D8A97 #972D8A
tetradic
#8A972D #2D976F #3A2D97 #972D55
square
#8A972D #2D976F #3A2D97 #972D55
split-complementary
#8A972D #2D5597 #6F2D97
monochromatic
#343911 #5F681F #8A972D #B4C53C #C6D36B

Accessibility & contrast

On white

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

On black

6.55
#8A972D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A972D
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A972D#FFFFFF#000000##000000
##8A972D1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a972d;
/* rgb */ color: rgb(138, 151, 45);
/* oklch */ color: oklch(64.6% 0.129 116.2);
Tailwind
colors: {
  custom: {
    50: '#afb56d',
    500: '#8a972d',
    950: '#000000',
  },
}
SCSS
$custom: #8a972d;
$custom-light: #afb56d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a972d",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 45
  },
  "hsl": {
    "h": 67.358,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64557,
    "c": 0.12865,
    "h": 116.2
  },
  "luminance": 0.27726
}

Semantic roles & 50–950 ramp

primary
#8A972D
secondary
#7066BA
accent
#4ADD5C
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A972D

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

Preview Lab → · Contrast checker → · Palette generator →

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