#8A8940#8A8940

#8A8940 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.096 H 108.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A8940
RGBrgb(138, 137, 64)
HSLhsl(59, 37%, 40%)
HSVhsv(59, 54%, 54%)
CMYKcmyk(0%, 0.7%, 53.6%, 45.9%)
CIE-LABlab(55.75, -10.14, 38.75)
CIE-LCHlch(55.75, 40.06, 104.66°)
OKLaboklab(61.5% -0.0299 0.0909)
OKLCHoklch(61.5% 0.096 108.2)
XYZxyz(20.3528, 23.6653, 8.3452)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8940 #40418A
analogous
#8A6440 #8A8940 #668A40
triadic
#8A8940 #408A89 #89408A
tetradic
#8A8940 #408A64 #40418A #8A4066
square
#8A8940 #408A64 #40418A #8A4066
split-complementary
#8A8940 #40668A #64408A
monochromatic
#363619 #605F2D #8A8940 #B1B056 #C4C380

Accessibility & contrast

On white

3.66
#8A8940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#8A8940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8940
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8940#FFFFFF#000000##000000
##8A89401.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938439
Deuteranopia (green-blind)
#948744
Tritanopia (blue-blind)
#938179
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8940;
/* rgb */ color: rgb(138, 137, 64);
/* oklch */ color: oklch(61.5% 0.096 108.2);
Tailwind
colors: {
  custom: {
    50: '#aeab77',
    500: '#8a8940',
    950: '#000000',
  },
}
SCSS
$custom: #8a8940;
$custom-light: #aeab77;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8940",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 59.189,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.0957,
    "h": 108.2
  },
  "luminance": 0.23665
}

Semantic roles & 50–950 ramp

primary
#8A8940
secondary
#7778AF
accent
#5DCD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8940

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

Preview Lab → · Contrast checker → · Palette generator →

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