#8A9842#8A9842

#8A9842 is a light, moderate yellow. Relative luminance 0.283; OKLCH L 65.0% C 0.112 H 117.4°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8A9842
RGBrgb(138, 152, 66)
HSLhsl(70, 39%, 43%)
HSVhsv(70, 57%, 60%)
CMYKcmyk(9.2%, 0%, 56.6%, 40.4%)
CIE-LABlab(60.12, -17.90, 42.81)
CIE-LCHlch(60.12, 46.40, 112.70°)
OKLaboklab(65% -0.0517 0.0999)
OKLCHoklch(65% 0.112 117.4)
XYZxyz(22.6932, 28.2533, 9.4112)
Luminance0.2825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9842 #504298
analogous
#987B42 #8A9842 #5F9842
triadic
#8A9842 #428A98 #98428A
tetradic
#8A9842 #42987B #504298 #98425F
square
#8A9842 #42987B #504298 #98425F
split-complementary
#8A9842 #425F98 #7B4298
monochromatic
#3D431D #636D2F #8A9842 #AAB95E #C1CC89

Accessibility & contrast

On white

3.16
#8A9842 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#8A9842 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9842
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9842#FFFFFF#000000##000000
##8A98421.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A19139
Deuteranopia (green-blind)
#A09147
Tritanopia (blue-blind)
#919085
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9842;
/* rgb */ color: rgb(138, 152, 66);
/* oklch */ color: oklch(65.0% 0.112 117.4);
Tailwind
colors: {
  custom: {
    50: '#aeb679',
    500: '#8a9842',
    950: '#000000',
  },
}
SCSS
$custom: #8a9842;
$custom-light: #aeb679;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9842",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 66
  },
  "hsl": {
    "h": 69.767,
    "s": 39.45,
    "l": 42.745
  },
  "oklch": {
    "l": 0.64999,
    "c": 0.11244,
    "h": 117.4
  },
  "luminance": 0.28253
}

Semantic roles & 50–950 ramp

primary
#8A9842
secondary
#887FB7
accent
#58CF6C
background
#FAFBF7
surface
#F5F6EE
border
#CFD0C9
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9842

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

Preview Lab → · Contrast checker → · Palette generator →

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