#8A9E31#8A9E31

#8A9E31 is a light, vivid yellow-green. Relative luminance 0.301; OKLCH L 66.2% C 0.134 H 119.2°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A9E31
RGBrgb(138, 158, 49)
HSLhsl(71, 53%, 41%)
HSVhsv(71, 69%, 62%)
CMYKcmyk(12.7%, 0%, 69%, 38%)
CIE-LABlab(61.72, -22.25, 52.07)
CIE-LCHlch(61.72, 56.63, 113.14°)
OKLaboklab(66.24% -0.0655 0.1172)
OKLCHoklch(66.24% 0.134 119.2)
XYZxyz(23.2629, 30.0789, 7.4854)
Luminance0.3008 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9E31 #45319E
analogous
#9E7B31 #8A9E31 #539E31
triadic
#8A9E31 #318A9E #9E318A
tetradic
#8A9E31 #319E7B #45319E #9E3153
square
#8A9E31 #319E7B #45319E #9E3153
split-complementary
#8A9E31 #31539E #7B319E
monochromatic
#384114 #616F23 #8A9E31 #AEC646 #C3D475

Accessibility & contrast

On white

2.99
#8A9E31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#8A9E31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9E31
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9E31#FFFFFF#000000##000000
##8A9E311.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89521
Deuteranopia (green-blind)
#A69539
Tritanopia (blue-blind)
#929688
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a9e31;
/* rgb */ color: rgb(138, 158, 49);
/* oklch */ color: oklch(66.2% 0.134 119.2);
Tailwind
colors: {
  custom: {
    50: '#afba70',
    500: '#8a9e31',
    950: '#000000',
  },
}
SCSS
$custom: #8a9e31;
$custom-light: #afba70;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9e31",
  "rgb": {
    "r": 138,
    "g": 158,
    "b": 49
  },
  "hsl": {
    "h": 71.009,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.66239,
    "c": 0.13428,
    "h": 119.2
  },
  "luminance": 0.30079
}

Semantic roles & 50–950 ramp

primary
#8A9E31
secondary
#7D6EBC
accent
#4CDC66
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9E31

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

Preview Lab → · Contrast checker → · Palette generator →

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