#8AB42F#8AB42F

#8AB42F is a light, vivid yellow-green. Relative luminance 0.383; OKLCH L 71.5% C 0.163 H 125.8°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#8AB42F
RGBrgb(138, 180, 47)
HSLhsl(79, 59%, 45%)
HSVhsv(79, 74%, 71%)
CMYKcmyk(23.3%, 0%, 73.9%, 29.4%)
CIE-LABlab(68.20, -32.99, 59.26)
CIE-LCHlch(68.20, 67.83, 119.11°)
OKLaboklab(71.47% -0.0953 0.132)
OKLCHoklch(71.47% 0.163 125.8)
XYZxyz(27.3157, 38.2506, 8.6328)
Luminance0.3825 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AB42F #592FB4
analogous
#B49B2F #8AB42F #48B42F
triadic
#8AB42F #2F8AB4 #B42F8A
tetradic
#8AB42F #2FB49B #592FB4 #B42F48
square
#8AB42F #2FB49B #592FB4 #B42F48
split-complementary
#8AB42F #2F48B4 #9B2FB4
monochromatic
#405316 #658322 #8AB42F #A8D14F #C0DE80

Accessibility & contrast

On white

2.43
#8AB42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#8AB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AB42F
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AB42F#FFFFFF#000000##000000
##8AB42F1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA814
Deuteranopia (green-blind)
#B8A63B
Tritanopia (blue-blind)
#90AB9A
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #8ab42f;
/* rgb */ color: rgb(138, 180, 47);
/* oklch */ color: oklch(71.5% 0.163 125.8);
Tailwind
colors: {
  custom: {
    50: '#b0ca71',
    500: '#8ab42f',
    950: '#000000',
  },
}
SCSS
$custom: #8ab42f;
$custom-light: #b0ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#8ab42f",
  "rgb": {
    "r": 138,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 78.947,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71471,
    "c": 0.16279,
    "h": 125.8
  },
  "luminance": 0.38251
}

Semantic roles & 50–950 ramp

primary
#8AB42F
secondary
#9178C7
accent
#46E277
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8AB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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