#8AA71B#8AA71B

#8AA71B is a light, vivid yellow-green. Relative luminance 0.331; OKLCH L 68.2% C 0.157 H 121.6°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8AA71B
RGBrgb(138, 167, 27)
HSLhsl(72, 72%, 38%)
HSVhsv(72, 84%, 65%)
CMYKcmyk(17.4%, 0%, 83.8%, 34.5%)
CIE-LABlab(64.26, -27.74, 61.69)
CIE-LCHlch(64.26, 67.64, 114.21°)
OKLaboklab(68.25% -0.0824 0.1338)
OKLCHoklch(68.25% 0.157 121.6)
XYZxyz(24.4982, 33.1198, 6.1388)
Luminance0.3312 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AA71B #381BA7
analogous
#A77E1B #8AA71B #44A71B
triadic
#8AA71B #1B8AA7 #A71B8A
tetradic
#8AA71B #1BA77E #381BA7 #A71B44
square
#8AA71B #1BA77E #381BA7 #A71B44
split-complementary
#8AA71B #1B44A7 #7E1BA7
monochromatic
#333E0A #5E7212 #8AA71B #B5DC24 #C7E458

Accessibility & contrast

On white

2.75
#8AA71B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#8AA71B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AA71B
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AA71B#FFFFFF#000000##000000
##8AA71B1.002.757.627.62
#FFFFFF2.751.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29C00
Deuteranopia (green-blind)
#AE9C2B
Tritanopia (blue-blind)
#929E8E
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #8aa71b;
/* rgb */ color: rgb(138, 167, 27);
/* oklch */ color: oklch(68.2% 0.157 121.6);
Tailwind
colors: {
  custom: {
    50: '#b0c167',
    500: '#8aa71b',
    950: '#000000',
  },
}
SCSS
$custom: #8aa71b;
$custom-light: #b0c167;
$custom-dark: #000000;
JSON
{
  "hex": "#8aa71b",
  "rgb": {
    "r": 138,
    "g": 167,
    "b": 27
  },
  "hsl": {
    "h": 72.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.68246,
    "c": 0.15715,
    "h": 121.6
  },
  "luminance": 0.3312
}

Semantic roles & 50–950 ramp

primary
#8AA71B
secondary
#6E56C8
accent
#39EF5F
background
#FBFBF6
surface
#F6F7EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #8AA71B

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

Preview Lab → · Contrast checker → · Palette generator →

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