#8AAF40#8AAF40

#8AAF40 is a light, vivid yellow-green. Relative luminance 0.364; OKLCH L 70.4% C 0.145 H 125.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#8AAF40
RGBrgb(138, 175, 64)
HSLhsl(80, 46%, 47%)
HSVhsv(80, 63%, 69%)
CMYKcmyk(21.1%, 0%, 63.4%, 31.4%)
CIE-LABlab(66.85, -29.50, 51.21)
CIE-LCHlch(66.85, 59.10, 119.94°)
OKLaboklab(70.41% -0.0842 0.1175)
OKLCHoklch(70.41% 0.145 125.6)
XYZxyz(26.7367, 36.4331, 10.4732)
Luminance0.3643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AAF40 #6540AF
analogous
#AF9D40 #8AAF40 #53AF40
triadic
#8AAF40 #408AAF #AF408A
tetradic
#8AAF40 #40AF9D #6540AF #AF4053
square
#8AAF40 #40AF9D #6540AF #AF4053
split-complementary
#8AAF40 #4053AF #9D40AF
monochromatic
#43551F #678230 #8AAF40 #A6C765 #C0D792

Accessibility & contrast

On white

2.53
#8AAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#8AAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AAF40
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AAF40#FFFFFF#000000##000000
##8AAF401.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A432
Deuteranopia (green-blind)
#B3A248
Tritanopia (blue-blind)
#90A798
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #8aaf40;
/* rgb */ color: rgb(138, 175, 64);
/* oklch */ color: oklch(70.4% 0.145 125.6);
Tailwind
colors: {
  custom: {
    50: '#afc77a',
    500: '#8aaf40',
    950: '#000000',
  },
}
SCSS
$custom: #8aaf40;
$custom-light: #afc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#8aaf40",
  "rgb": {
    "r": 138,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 80,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70413,
    "c": 0.14458,
    "h": 125.6
  },
  "luminance": 0.36433
}

Semantic roles & 50–950 ramp

primary
#8AAF40
secondary
#9C88C3
accent
#52D67E
background
#FBFCF7
surface
#F6F8EE
border
#D0D1C9
text
#111309
muted
#80827B

Preview Lab

Preview with #8AAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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