#8AB31B#8AB31B

#8AB31B is a light, vivid yellow-green. Relative luminance 0.377; OKLCH L 71.1% C 0.171 H 124.9°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8AB31B
RGBrgb(138, 179, 27)
HSLhsl(76, 74%, 40%)
HSVhsv(76, 85%, 70%)
CMYKcmyk(22.9%, 0%, 84.9%, 29.8%)
CIE-LABlab(67.82, -33.41, 64.75)
CIE-LCHlch(67.82, 72.86, 117.29°)
OKLaboklab(71.13% -0.0978 0.1404)
OKLCHoklch(71.13% 0.171 124.9)
XYZxyz(26.7994, 37.7223, 6.9059)
Luminance0.3772 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AB31B #441BB3
analogous
#B3901B #8AB31B #3EB31B
triadic
#8AB31B #1B8AB3 #B31B8A
tetradic
#8AB31B #1BB390 #441BB3 #B31B3E
square
#8AB31B #1BB390 #441BB3 #B31B3E
split-complementary
#8AB31B #1B3EB3 #901BB3
monochromatic
#38490B #617E13 #8AB31B #AFDF2C #C3E761

Accessibility & contrast

On white

2.46
#8AB31B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#8AB31B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AB31B
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AB31B#FFFFFF#000000##000000
##8AB31B1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#B8A52E
Tritanopia (blue-blind)
#91AA98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #8ab31b;
/* rgb */ color: rgb(138, 179, 27);
/* oklch */ color: oklch(71.1% 0.171 124.9);
Tailwind
colors: {
  custom: {
    50: '#b1ca69',
    500: '#8ab31b',
    950: '#000000',
  },
}
SCSS
$custom: #8ab31b;
$custom-light: #b1ca69;
$custom-dark: #000000;
JSON
{
  "hex": "#8ab31b",
  "rgb": {
    "r": 138,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 76.184,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.71125,
    "c": 0.1711,
    "h": 124.9
  },
  "luminance": 0.37723
}

Semantic roles & 50–950 ramp

primary
#8AB31B
secondary
#7C5ECC
accent
#37F069
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111307
muted
#80827A

Preview Lab

Preview with #8AB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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