#8A9D31#8A9D31

#8A9D31 is a light, vivid yellow-green. Relative luminance 0.297; OKLCH L 66.0% C 0.133 H 118.8°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A9D31
RGBrgb(138, 157, 49)
HSLhsl(71, 52%, 40%)
HSVhsv(71, 69%, 62%)
CMYKcmyk(12.1%, 0%, 68.8%, 38.4%)
CIE-LABlab(61.43, -21.75, 51.77)
CIE-LCHlch(61.43, 56.16, 112.78°)
OKLaboklab(66% -0.0642 0.1166)
OKLCHoklch(66% 0.133 118.8)
XYZxyz(23.0930, 29.7391, 7.4288)
Luminance0.2974 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9D31 #44319D
analogous
#9D7A31 #8A9D31 #549D31
triadic
#8A9D31 #318A9D #9D318A
tetradic
#8A9D31 #319D7A #44319D #9D3154
square
#8A9D31 #319D7A #44319D #9D3154
split-complementary
#8A9D31 #31549D #7A319D
monochromatic
#384014 #616E22 #8A9D31 #AFC546 #C3D475

Accessibility & contrast

On white

3.02
#8A9D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#8A9D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9D31
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9D31#FFFFFF#000000##000000
##8A9D311.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79421
Deuteranopia (green-blind)
#A59539
Tritanopia (blue-blind)
#929587
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a9d31;
/* rgb */ color: rgb(138, 157, 49);
/* oklch */ color: oklch(66.0% 0.133 118.8);
Tailwind
colors: {
  custom: {
    50: '#afb970',
    500: '#8a9d31',
    950: '#000000',
  },
}
SCSS
$custom: #8a9d31;
$custom-light: #afb970;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9d31",
  "rgb": {
    "r": 138,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 70.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.66003,
    "c": 0.13305,
    "h": 118.8
  },
  "luminance": 0.29739
}

Semantic roles & 50–950 ramp

primary
#8A9D31
secondary
#7C6EBC
accent
#4CDC65
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9D31

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

Preview Lab → · Contrast checker → · Palette generator →

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