#8A972B#8A972B

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

Color values

HEX#8A972B
RGBrgb(138, 151, 43)
HSLhsl(67, 56%, 38%)
HSVhsv(67, 72%, 59%)
CMYKcmyk(8.6%, 0%, 71.5%, 40.8%)
CIE-LABlab(59.63, -19.06, 52.32)
CIE-LCHlch(59.63, 55.69, 110.01°)
OKLaboklab(64.54% -0.0573 0.1167)
OKLCHoklch(64.54% 0.13 116.1)
XYZxyz(21.9844, 27.7112, 6.4757)
Luminance0.2771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A972B #382B97
analogous
#976E2B #8A972B #54972B
triadic
#8A972B #2B8A97 #972B8A
tetradic
#8A972B #2B976E #382B97 #972B54
square
#8A972B #2B976E #382B97 #972B54
split-complementary
#8A972B #2B5497 #6E2B97
monochromatic
#333810 #5E671D #8A972B #B5C739 #C7D468

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A972B#FFFFFF#000000##000000
##8A972B1.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)
#A28F19
Deuteranopia (green-blind)
#A19033
Tritanopia (blue-blind)
#938E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a972b;
/* rgb */ color: rgb(138, 151, 43);
/* oklch */ color: oklch(64.5% 0.130 116.1);
Tailwind
colors: {
  custom: {
    50: '#afb56c',
    500: '#8a972b',
    950: '#000000',
  },
}
SCSS
$custom: #8a972b;
$custom-light: #afb56c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a972b",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 43
  },
  "hsl": {
    "h": 67.222,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.64542,
    "c": 0.13002,
    "h": 116.1
  },
  "luminance": 0.27711
}

Semantic roles & 50–950 ramp

primary
#8A972B
secondary
#6E63BB
accent
#49DF5B
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A972B

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

Preview Lab → · Contrast checker → · Palette generator →

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