#8A9742#8A9742

#8A9742 is a light, moderate yellow. Relative luminance 0.279; OKLCH L 64.8% C 0.111 H 116.9°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A9742
RGBrgb(138, 151, 66)
HSLhsl(69, 39%, 43%)
HSVhsv(69, 56%, 59%)
CMYKcmyk(8.6%, 0%, 56.3%, 40.8%)
CIE-LABlab(59.83, -17.39, 42.47)
CIE-LCHlch(59.83, 45.90, 112.26°)
OKLaboklab(64.77% -0.0502 0.0992)
OKLCHoklch(64.77% 0.111 116.9)
XYZxyz(22.5316, 27.9301, 9.3573)
Luminance0.2793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9742 #4F4297
analogous
#977942 #8A9742 #609742
triadic
#8A9742 #428A97 #97428A
tetradic
#8A9742 #429779 #4F4297 #974260
square
#8A9742 #429779 #4F4297 #974260
split-complementary
#8A9742 #426097 #794297
monochromatic
#3C421D #636C2F #8A9742 #ABB85E #C1CB88

Accessibility & contrast

On white

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

On black

6.59
#8A9742 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9742
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9742#FFFFFF#000000##000000
##8A97421.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9742;
/* rgb */ color: rgb(138, 151, 66);
/* oklch */ color: oklch(64.8% 0.111 116.9);
Tailwind
colors: {
  custom: {
    50: '#aeb579',
    500: '#8a9742',
    950: '#000000',
  },
}
SCSS
$custom: #8a9742;
$custom-light: #aeb579;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9742",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 66
  },
  "hsl": {
    "h": 69.176,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.64765,
    "c": 0.11115,
    "h": 116.9
  },
  "luminance": 0.2793
}

Semantic roles & 50–950 ramp

primary
#8A9742
secondary
#877FB6
accent
#59CF6B
background
#FAFBF7
surface
#F5F6EE
border
#CFD0C9
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9742

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

Preview Lab → · Contrast checker → · Palette generator →

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