#8A972F#8A972F

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

Color values

HEX#8A972F
RGBrgb(138, 151, 47)
HSLhsl(68, 53%, 39%)
HSVhsv(68, 69%, 59%)
CMYKcmyk(8.6%, 0%, 68.9%, 40.8%)
CIE-LABlab(59.65, -18.82, 50.77)
CIE-LCHlch(59.65, 54.15, 110.34°)
OKLaboklab(64.57% -0.0562 0.1141)
OKLCHoklch(64.57% 0.127 116.2)
XYZxyz(22.0614, 27.7420, 6.8813)
Luminance0.2774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A972F #3C2F97
analogous
#97702F #8A972F #56972F
triadic
#8A972F #2F8A97 #972F8A
tetradic
#8A972F #2F9770 #3C2F97 #972F56
square
#8A972F #2F9770 #3C2F97 #972F56
split-complementary
#8A972F #2F5697 #702F97
monochromatic
#353A12 #5F6820 #8A972F #B3C340 #C6D26E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A972F#FFFFFF#000000##000000
##8A972F1.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)
#A18F1F
Deuteranopia (green-blind)
#A09037
Tritanopia (blue-blind)
#938E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a972f;
/* rgb */ color: rgb(138, 151, 47);
/* oklch */ color: oklch(64.6% 0.127 116.2);
Tailwind
colors: {
  custom: {
    50: '#afb56e',
    500: '#8a972f',
    950: '#000000',
  },
}
SCSS
$custom: #8a972f;
$custom-light: #afb56e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a972f",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 47
  },
  "hsl": {
    "h": 67.5,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64574,
    "c": 0.12723,
    "h": 116.2
  },
  "luminance": 0.27742
}

Semantic roles & 50–950 ramp

primary
#8A972F
secondary
#7368B9
accent
#4CDC5E
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A972F

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

Preview Lab → · Contrast checker → · Palette generator →

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