#8A9F2F#8A9F2F

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

Color values

HEX#8A9F2F
RGBrgb(138, 159, 47)
HSLhsl(71, 54%, 40%)
HSVhsv(71, 70%, 62%)
CMYKcmyk(13.2%, 0%, 70.4%, 37.6%)
CIE-LABlab(62.00, -22.87, 53.14)
CIE-LCHlch(62.00, 57.86, 113.29°)
OKLaboklab(66.46% -0.0675 0.1191)
OKLCHoklch(66.46% 0.137 119.5)
XYZxyz(23.3929, 30.4049, 7.3251)
Luminance0.3040 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F2F #442F9F
analogous
#9F7C2F #8A9F2F #529F2F
triadic
#8A9F2F #2F8A9F #9F2F8A
tetradic
#8A9F2F #2F9F7C #442F9F #9F2F52
square
#8A9F2F #2F9F7C #442F9F #9F2F52
split-complementary
#8A9F2F #2F529F #7C2F9F
monochromatic
#384113 #617021 #8A9F2F #AFC844 #C3D673

Accessibility & contrast

On white

2.97
#8A9F2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9F2F#FFFFFF#000000##000000
##8A9F2F1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9961D
Deuteranopia (green-blind)
#A79638
Tritanopia (blue-blind)
#929689
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a9f2f;
/* rgb */ color: rgb(138, 159, 47);
/* oklch */ color: oklch(66.5% 0.137 119.5);
Tailwind
colors: {
  custom: {
    50: '#afbb6f',
    500: '#8a9f2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f2f;
$custom-light: #afbb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f2f",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 47
  },
  "hsl": {
    "h": 71.25,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6646,
    "c": 0.13691,
    "h": 119.5
  },
  "luminance": 0.30405
}

Semantic roles & 50–950 ramp

primary
#8A9F2F
secondary
#7C6DBD
accent
#4ADE66
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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