#8A972E#8A972E

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

Color values

HEX#8A972E
RGBrgb(138, 151, 46)
HSLhsl(67, 53%, 39%)
HSVhsv(67, 70%, 59%)
CMYKcmyk(8.6%, 0%, 69.5%, 40.8%)
CIE-LABlab(59.65, -18.88, 51.17)
CIE-LCHlch(59.65, 54.54, 110.25°)
OKLaboklab(64.57% -0.0565 0.1148)
OKLCHoklch(64.57% 0.128 116.2)
XYZxyz(22.0415, 27.7341, 6.7763)
Luminance0.2773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A972E #3B2E97
analogous
#976F2E #8A972E #55972E
triadic
#8A972E #2E8A97 #972E8A
tetradic
#8A972E #2E976F #3B2E97 #972E55
square
#8A972E #2E976F #3B2E97 #972E55
split-complementary
#8A972E #2E5597 #6F2E97
monochromatic
#343911 #5F6820 #8A972E #B4C43E #C6D26D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A972E#FFFFFF#000000##000000
##8A972E1.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)
#A18F1E
Deuteranopia (green-blind)
#A09036
Tritanopia (blue-blind)
#938E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a972e;
/* rgb */ color: rgb(138, 151, 46);
/* oklch */ color: oklch(64.6% 0.128 116.2);
Tailwind
colors: {
  custom: {
    50: '#afb56d',
    500: '#8a972e',
    950: '#000000',
  },
}
SCSS
$custom: #8a972e;
$custom-light: #afb56d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a972e",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 46
  },
  "hsl": {
    "h": 67.429,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64565,
    "c": 0.12795,
    "h": 116.2
  },
  "luminance": 0.27734
}

Semantic roles & 50–950 ramp

primary
#8A972E
secondary
#7167BA
accent
#4BDD5D
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A972E

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

Preview Lab → · Contrast checker → · Palette generator →

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