#8A9845#8A9845

#8A9845 is a light, moderate yellow-green. Relative luminance 0.283; OKLCH L 65.0% C 0.110 H 117.5°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A9845
RGBrgb(138, 152, 69)
HSLhsl(70, 38%, 43%)
HSVhsv(70, 55%, 60%)
CMYKcmyk(9.2%, 0%, 54.6%, 40.4%)
CIE-LABlab(60.15, -17.63, 41.39)
CIE-LCHlch(60.15, 44.99, 113.07°)
OKLaboklab(65.04% -0.0506 0.0971)
OKLCHoklch(65.04% 0.11 117.5)
XYZxyz(22.7840, 28.2896, 9.8892)
Luminance0.2829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9845 #534598
analogous
#987C45 #8A9845 #609845
triadic
#8A9845 #458A98 #98458A
tetradic
#8A9845 #45987C #534598 #984560
square
#8A9845 #45987C #534598 #984560
split-complementary
#8A9845 #456098 #7C4598
monochromatic
#3E441F #646E32 #8A9845 #A9B862 #C0CB8C

Accessibility & contrast

On white

3.15
#8A9845 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#8A9845 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9845
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9845#FFFFFF#000000##000000
##8A98451.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A1913D
Deuteranopia (green-blind)
#A0914A
Tritanopia (blue-blind)
#919185
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9845;
/* rgb */ color: rgb(138, 152, 69);
/* oklch */ color: oklch(65.0% 0.110 117.5);
Tailwind
colors: {
  custom: {
    50: '#aeb67b',
    500: '#8a9845',
    950: '#000000',
  },
}
SCSS
$custom: #8a9845;
$custom-light: #aeb67b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9845",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 69
  },
  "hsl": {
    "h": 70.12,
    "s": 37.557,
    "l": 43.333
  },
  "oklch": {
    "l": 0.65035,
    "c": 0.10952,
    "h": 117.5
  },
  "luminance": 0.28289
}

Semantic roles & 50–950 ramp

primary
#8A9845
secondary
#8B82B6
accent
#5ACE6E
background
#FAFBF7
surface
#F5F6EE
border
#CFD0C9
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9845

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

Preview Lab → · Contrast checker → · Palette generator →

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