#8AB31F#8AB31F

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

Color values

HEX#8AB31F
RGBrgb(138, 179, 31)
HSLhsl(77, 70%, 41%)
HSVhsv(77, 83%, 70%)
CMYKcmyk(22.9%, 0%, 82.7%, 29.8%)
CIE-LABlab(67.83, -33.27, 63.78)
CIE-LCHlch(67.83, 71.94, 117.54°)
OKLaboklab(71.14% -0.0972 0.1389)
OKLCHoklch(71.14% 0.17 125)
XYZxyz(26.8489, 37.7421, 7.1665)
Luminance0.3774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AB31F #481FB3
analogous
#B3921F #8AB31F #40B31F
triadic
#8AB31F #1F8AB3 #B31F8A
tetradic
#8AB31F #1FB392 #481FB3 #B31F40
square
#8AB31F #1FB392 #481FB3 #B31F40
split-complementary
#8AB31F #1F40B3 #921FB3
monochromatic
#3A4B0D #627F16 #8AB31F #ADDC33 #C2E568

Accessibility & contrast

On white

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

On black

8.55
#8AB31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AB31F
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AB31F#FFFFFF#000000##000000
##8AB31F1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8ab31f;
/* rgb */ color: rgb(138, 179, 31);
/* oklch */ color: oklch(71.1% 0.170 125.0);
Tailwind
colors: {
  custom: {
    50: '#b0ca6a',
    500: '#8ab31f',
    950: '#000000',
  },
}
SCSS
$custom: #8ab31f;
$custom-light: #b0ca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8ab31f",
  "rgb": {
    "r": 138,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 76.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71142,
    "c": 0.16956,
    "h": 125
  },
  "luminance": 0.37742
}

Semantic roles & 50–950 ramp

primary
#8AB31F
secondary
#8064CA
accent
#3BED6C
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111307
muted
#80827A

Preview Lab

Preview with #8AB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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