#8A8D40#8A8D40

#8A8D40 is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.4% C 0.100 H 111.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A8D40
RGBrgb(138, 141, 64)
HSLhsl(62, 38%, 40%)
HSVhsv(62, 55%, 55%)
CMYKcmyk(2.1%, 0%, 54.6%, 44.7%)
CIE-LABlab(56.90, -12.29, 40.09)
CIE-LCHlch(56.90, 41.93, 107.05°)
OKLaboklab(62.42% -0.036 0.0938)
OKLCHoklch(62.42% 0.1 111)
XYZxyz(20.9320, 24.8236, 8.5383)
Luminance0.2482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D40 #43408D
analogous
#8D6A40 #8A8D40 #638D40
triadic
#8A8D40 #408A8D #8D408A
tetradic
#8A8D40 #408D6A #43408D #8D4063
square
#8A8D40 #408D6A #43408D #8D4063
split-complementary
#8A8D40 #40638D #6A408D
monochromatic
#38391A #61632D #8A8D40 #AFB357 #C3C681

Accessibility & contrast

On white

3.52
#8A8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D40
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D40#FFFFFF#000000##000000
##8A8D401.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978738
Deuteranopia (green-blind)
#978A44
Tritanopia (blue-blind)
#92857C
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8d40;
/* rgb */ color: rgb(138, 141, 64);
/* oklch */ color: oklch(62.4% 0.100 111.0);
Tailwind
colors: {
  custom: {
    50: '#aeae77',
    500: '#8a8d40',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d40;
$custom-light: #aeae77;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d40",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 62.338,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.62421,
    "c": 0.10048,
    "h": 111
  },
  "luminance": 0.24823
}

Semantic roles & 50–950 ramp

primary
#8A8D40
secondary
#7B78B0
accent
#5ACE5F
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8D40

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

Preview Lab → · Contrast checker → · Palette generator →

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