#8AB540#8AB540

#8AB540 is a light, vivid yellow-green. Relative luminance 0.388; OKLCH L 71.8% C 0.152 H 127.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#8AB540
RGBrgb(138, 181, 64)
HSLhsl(82, 48%, 48%)
HSVhsv(82, 65%, 71%)
CMYKcmyk(23.8%, 0%, 64.6%, 29%)
CIE-LABlab(68.62, -32.33, 53.12)
CIE-LCHlch(68.62, 62.18, 121.33°)
OKLaboklab(71.85% -0.092 0.1216)
OKLCHoklch(71.85% 0.152 127.1)
XYZxyz(27.9305, 38.8207, 10.8711)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AB540 #6B40B5
analogous
#B5A540 #8AB540 #50B540
triadic
#8AB540 #408AB5 #B5408A
tetradic
#8AB540 #40B5A5 #6B40B5 #B54050
square
#8AB540 #40B5A5 #6B40B5 #B54050
split-complementary
#8AB540 #4050B5 #A540B5
monochromatic
#455B20 #688830 #8AB540 #A6CA68 #C1DA96

Accessibility & contrast

On white

2.40
#8AB540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#8AB540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AB540
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AB540#FFFFFF#000000##000000
##8AB5401.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA931
Deuteranopia (green-blind)
#B8A749
Tritanopia (blue-blind)
#8FAD9D
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #8ab540;
/* rgb */ color: rgb(138, 181, 64);
/* oklch */ color: oklch(71.8% 0.152 127.1);
Tailwind
colors: {
  custom: {
    50: '#afcb7a',
    500: '#8ab540',
    950: '#000000',
  },
}
SCSS
$custom: #8ab540;
$custom-light: #afcb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#8ab540",
  "rgb": {
    "r": 138,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 82.051,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71846,
    "c": 0.15245,
    "h": 127.1
  },
  "luminance": 0.38821
}

Semantic roles & 50–950 ramp

primary
#8AB540
secondary
#A18BC5
accent
#50D782
background
#FBFCF7
surface
#F6F8EE
border
#D0D1C9
text
#11130A
muted
#80827C

Preview Lab

Preview with #8AB540

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

Preview Lab → · Contrast checker → · Palette generator →

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