#8AB331#8AB331

#8AB331 is a light, vivid yellow-green. Relative luminance 0.379; OKLCH L 71.2% C 0.160 H 125.7°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#8AB331
RGBrgb(138, 179, 49)
HSLhsl(79, 57%, 45%)
HSVhsv(79, 73%, 70%)
CMYKcmyk(22.9%, 0%, 72.6%, 29.8%)
CIE-LABlab(67.92, -32.41, 58.28)
CIE-LCHlch(67.92, 66.68, 119.08°)
OKLaboklab(71.24% -0.0936 0.1302)
OKLCHoklch(71.24% 0.16 125.7)
XYZxyz(27.1559, 37.8648, 8.7831)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AB331 #5A31B3
analogous
#B39B31 #8AB331 #49B331
triadic
#8AB331 #318AB3 #B3318A
tetradic
#8AB331 #31B39B #5A31B3 #B33149
square
#8AB331 #31B39B #5A31B3 #B33149
split-complementary
#8AB331 #3149B3 #9B31B3
monochromatic
#405317 #658324 #8AB331 #A8D052 #C0DD82

Accessibility & contrast

On white

2.45
#8AB331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#8AB331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AB331
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AB331#FFFFFF#000000##000000
##8AB3311.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA719
Deuteranopia (green-blind)
#B7A53D
Tritanopia (blue-blind)
#90AA9A
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #8ab331;
/* rgb */ color: rgb(138, 179, 49);
/* oklch */ color: oklch(71.2% 0.160 125.7);
Tailwind
colors: {
  custom: {
    50: '#b0ca72',
    500: '#8ab331',
    950: '#000000',
  },
}
SCSS
$custom: #8ab331;
$custom-light: #b0ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#8ab331",
  "rgb": {
    "r": 138,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 78.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71244,
    "c": 0.16035,
    "h": 125.7
  },
  "luminance": 0.37865
}

Semantic roles & 50–950 ramp

primary
#8AB331
secondary
#927AC6
accent
#48E078
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8AB331

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

Preview Lab → · Contrast checker → · Palette generator →

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