#8A9F31#8A9F31

#8A9F31 is a light, vivid yellow-green. Relative luminance 0.304; OKLCH L 66.5% C 0.136 H 119.6°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A9F31
RGBrgb(138, 159, 49)
HSLhsl(71, 53%, 41%)
HSVhsv(71, 69%, 62%)
CMYKcmyk(13.2%, 0%, 69.2%, 37.6%)
CIE-LABlab(62.02, -22.75, 52.37)
CIE-LCHlch(62.02, 57.10, 113.48°)
OKLaboklab(66.48% -0.0669 0.1178)
OKLCHoklch(66.48% 0.136 119.6)
XYZxyz(23.4342, 30.4214, 7.5425)
Luminance0.3042 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F31 #46319F
analogous
#9F7D31 #8A9F31 #539F31
triadic
#8A9F31 #318A9F #9F318A
tetradic
#8A9F31 #319F7D #46319F #9F3153
square
#8A9F31 #319F7D #46319F #9F3153
split-complementary
#8A9F31 #31539F #7D319F
monochromatic
#394114 #617023 #8A9F31 #AEC647 #C3D576

Accessibility & contrast

On white

2.96
#8A9F31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#8A9F31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9F31
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9F31#FFFFFF#000000##000000
##8A9F311.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99620
Deuteranopia (green-blind)
#A7963A
Tritanopia (blue-blind)
#929789
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a9f31;
/* rgb */ color: rgb(138, 159, 49);
/* oklch */ color: oklch(66.5% 0.136 119.6);
Tailwind
colors: {
  custom: {
    50: '#afbb70',
    500: '#8a9f31',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f31;
$custom-light: #afbb70;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f31",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 49
  },
  "hsl": {
    "h": 71.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.66476,
    "c": 0.13551,
    "h": 119.6
  },
  "luminance": 0.30421
}

Semantic roles & 50–950 ramp

primary
#8A9F31
secondary
#7E6FBD
accent
#4CDC67
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9F31

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

Preview Lab → · Contrast checker → · Palette generator →

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