#8A9942#8A9942

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

Color values

HEX#8A9942
RGBrgb(138, 153, 66)
HSLhsl(70, 40%, 43%)
HSVhsv(70, 57%, 60%)
CMYKcmyk(9.8%, 0%, 56.9%, 40%)
CIE-LABlab(60.41, -18.42, 43.14)
CIE-LCHlch(60.41, 46.91, 113.12°)
OKLaboklab(65.23% -0.0531 0.1006)
OKLCHoklch(65.23% 0.114 117.8)
XYZxyz(22.8562, 28.5793, 9.4655)
Luminance0.2858 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9942 #514299
analogous
#997C42 #8A9942 #5E9942
triadic
#8A9942 #428A99 #99428A
tetradic
#8A9942 #42997C #514299 #99425E
square
#8A9942 #42997C #514299 #99425E
split-complementary
#8A9942 #425E99 #7C4299
monochromatic
#3D431D #636E30 #8A9942 #AABA5E #C1CC89

Accessibility & contrast

On white

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

On black

6.72
#8A9942 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9942
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9942#FFFFFF#000000##000000
##8A99421.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29139
Deuteranopia (green-blind)
#A19247
Tritanopia (blue-blind)
#919186
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9942;
/* rgb */ color: rgb(138, 153, 66);
/* oklch */ color: oklch(65.2% 0.114 117.8);
Tailwind
colors: {
  custom: {
    50: '#aeb779',
    500: '#8a9942',
    950: '#000000',
  },
}
SCSS
$custom: #8a9942;
$custom-light: #aeb779;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9942",
  "rgb": {
    "r": 138,
    "g": 153,
    "b": 66
  },
  "hsl": {
    "h": 70.345,
    "s": 39.726,
    "l": 42.941
  },
  "oklch": {
    "l": 0.65232,
    "c": 0.11375,
    "h": 117.8
  },
  "luminance": 0.28579
}

Semantic roles & 50–950 ramp

primary
#8A9942
secondary
#8980B7
accent
#58D06D
background
#FAFBF7
surface
#F5F6EE
border
#CFD0C9
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9942

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

Preview Lab → · Contrast checker → · Palette generator →

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