#8A9740#8A9740

#8A9740 is a light, moderate yellow. Relative luminance 0.279; OKLCH L 64.7% C 0.113 H 116.8°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8A9740
RGBrgb(138, 151, 64)
HSLhsl(69, 40%, 42%)
HSVhsv(69, 58%, 59%)
CMYKcmyk(8.6%, 0%, 57.6%, 40.8%)
CIE-LABlab(59.80, -17.56, 43.41)
CIE-LCHlch(59.80, 46.83, 112.03°)
OKLaboklab(64.74% -0.0509 0.1009)
OKLCHoklch(64.74% 0.113 116.8)
XYZxyz(22.4736, 27.9069, 9.0522)
Luminance0.2791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9740 #4D4097
analogous
#977940 #8A9740 #5E9740
triadic
#8A9740 #408A97 #97408A
tetradic
#8A9740 #409779 #4D4097 #97405E
square
#8A9740 #409779 #4D4097 #97405E
split-complementary
#8A9740 #405E97 #794097
monochromatic
#3B411C #636C2E #8A9740 #ABB95B #C1CC86

Accessibility & contrast

On white

3.19
#8A9740 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#8A9740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9740
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9740#FFFFFF#000000##000000
##8A97401.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A09037
Deuteranopia (green-blind)
#9F9145
Tritanopia (blue-blind)
#928F84
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9740;
/* rgb */ color: rgb(138, 151, 64);
/* oklch */ color: oklch(64.7% 0.113 116.8);
Tailwind
colors: {
  custom: {
    50: '#aeb578',
    500: '#8a9740',
    950: '#000000',
  },
}
SCSS
$custom: #8a9740;
$custom-light: #aeb578;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9740",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 64
  },
  "hsl": {
    "h": 68.966,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.64741,
    "c": 0.11304,
    "h": 116.8
  },
  "luminance": 0.27907
}

Semantic roles & 50–950 ramp

primary
#8A9740
secondary
#857DB6
accent
#57D06A
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8A9740

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

Preview Lab → · Contrast checker → · Palette generator →

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