#8A9640#8A9640

#8A9640 is a light, moderate yellow. Relative luminance 0.276; OKLCH L 64.5% C 0.112 H 116.3°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A9640
RGBrgb(138, 150, 64)
HSLhsl(68, 40%, 42%)
HSVhsv(68, 57%, 59%)
CMYKcmyk(8%, 0%, 57.3%, 41.2%)
CIE-LABlab(59.51, -17.04, 43.08)
CIE-LCHlch(59.51, 46.33, 111.58°)
OKLaboklab(64.51% -0.0494 0.1002)
OKLCHoklch(64.51% 0.112 116.3)
XYZxyz(22.3134, 27.5864, 8.9987)
Luminance0.2759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9640 #4C4096
analogous
#967740 #8A9640 #5F9640
triadic
#8A9640 #408A96 #96408A
tetradic
#8A9640 #409677 #4C4096 #96405F
square
#8A9640 #409677 #4C4096 #96405F
split-complementary
#8A9640 #405F96 #774096
monochromatic
#3B401B #636B2E #8A9640 #ACB95A #C1CB85

Accessibility & contrast

On white

3.22
#8A9640 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#8A9640 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9640
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9640#FFFFFF#000000##000000
##8A96401.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08F37
Deuteranopia (green-blind)
#9E9045
Tritanopia (blue-blind)
#928E83
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a9640;
/* rgb */ color: rgb(138, 150, 64);
/* oklch */ color: oklch(64.5% 0.112 116.3);
Tailwind
colors: {
  custom: {
    50: '#aeb478',
    500: '#8a9640',
    950: '#000000',
  },
}
SCSS
$custom: #8a9640;
$custom-light: #aeb478;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9640",
  "rgb": {
    "r": 138,
    "g": 150,
    "b": 64
  },
  "hsl": {
    "h": 68.372,
    "s": 40.187,
    "l": 41.961
  },
  "oklch": {
    "l": 0.64508,
    "c": 0.11176,
    "h": 116.3
  },
  "luminance": 0.27586
}

Semantic roles & 50–950 ramp

primary
#8A9640
secondary
#847CB6
accent
#58D069
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8A9640

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

Preview Lab → · Contrast checker → · Palette generator →

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