#8A9840#8A9840

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

Color values

HEX#8A9840
RGBrgb(138, 152, 64)
HSLhsl(70, 41%, 42%)
HSVhsv(70, 58%, 60%)
CMYKcmyk(9.2%, 0%, 57.9%, 40.4%)
CIE-LABlab(60.10, -18.08, 43.74)
CIE-LCHlch(60.10, 47.33, 112.46°)
OKLaboklab(64.98% -0.0524 0.1016)
OKLCHoklch(64.98% 0.114 117.3)
XYZxyz(22.6352, 28.2301, 9.1060)
Luminance0.2823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9840 #4E4098
analogous
#987A40 #8A9840 #5E9840
triadic
#8A9840 #408A98 #98408A
tetradic
#8A9840 #40987A #4E4098 #98405E
square
#8A9840 #40987A #4E4098 #98405E
split-complementary
#8A9840 #405E98 #7A4098
monochromatic
#3C421C #636D2E #8A9840 #ABBA5B #C1CC86

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9840#FFFFFF#000000##000000
##8A98401.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)
#A19137
Deuteranopia (green-blind)
#A09145
Tritanopia (blue-blind)
#929085
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9840;
/* rgb */ color: rgb(138, 152, 64);
/* oklch */ color: oklch(65.0% 0.114 117.3);
Tailwind
colors: {
  custom: {
    50: '#aeb678',
    500: '#8a9840',
    950: '#000000',
  },
}
SCSS
$custom: #8a9840;
$custom-light: #aeb678;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9840",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 69.545,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.64975,
    "c": 0.11434,
    "h": 117.3
  },
  "luminance": 0.2823
}

Semantic roles & 50–950 ramp

primary
#8A9840
secondary
#867DB7
accent
#57D16B
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8A9840

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

Preview Lab → · Contrast checker → · Palette generator →

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