#8A9940#8A9940

#8A9940 is a light, moderate yellow-green. Relative luminance 0.286; OKLCH L 65.2% C 0.116 H 117.7°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8A9940
RGBrgb(138, 153, 64)
HSLhsl(70, 41%, 43%)
HSVhsv(70, 58%, 60%)
CMYKcmyk(9.8%, 0%, 58.2%, 40%)
CIE-LABlab(60.39, -18.59, 44.07)
CIE-LCHlch(60.39, 47.83, 112.88°)
OKLaboklab(65.21% -0.0538 0.1023)
OKLCHoklch(65.21% 0.116 117.7)
XYZxyz(22.7982, 28.5561, 9.1604)
Luminance0.2856 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9940 #4F4099
analogous
#997B40 #8A9940 #5E9940
triadic
#8A9940 #408A99 #99408A
tetradic
#8A9940 #40997B #4F4099 #99405E
square
#8A9940 #40997B #4F4099 #99405E
split-complementary
#8A9940 #405E99 #7B4099
monochromatic
#3C431C #636E2E #8A9940 #ABBB5C #C1CD87

Accessibility & contrast

On white

3.13
#8A9940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#8A9940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9940
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9940#FFFFFF#000000##000000
##8A99401.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29137
Deuteranopia (green-blind)
#A19245
Tritanopia (blue-blind)
#929186
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9940;
/* rgb */ color: rgb(138, 153, 64);
/* oklch */ color: oklch(65.2% 0.116 117.7);
Tailwind
colors: {
  custom: {
    50: '#aeb778',
    500: '#8a9940',
    950: '#000000',
  },
}
SCSS
$custom: #8a9940;
$custom-light: #aeb778;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9940",
  "rgb": {
    "r": 138,
    "g": 153,
    "b": 64
  },
  "hsl": {
    "h": 70.112,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.65209,
    "c": 0.11563,
    "h": 117.7
  },
  "luminance": 0.28556
}

Semantic roles & 50–950 ramp

primary
#8A9940
secondary
#877EB7
accent
#57D16B
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8A9940

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

Preview Lab → · Contrast checker → · Palette generator →

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