#8AAF31#8AAF31

#8AAF31 is a light, vivid yellow-green. Relative luminance 0.363; OKLCH L 70.3% C 0.155 H 124.7°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8AAF31
RGBrgb(138, 175, 49)
HSLhsl(78, 56%, 44%)
HSVhsv(78, 72%, 69%)
CMYKcmyk(21.1%, 0%, 72%, 31.4%)
CIE-LABlab(66.74, -30.53, 57.11)
CIE-LCHlch(66.74, 64.76, 118.13°)
OKLaboklab(70.29% -0.0884 0.1278)
OKLCHoklch(70.29% 0.155 124.7)
XYZxyz(26.3658, 36.2847, 8.5197)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8AAF31 #5631AF
analogous
#AF9531 #8AAF31 #4BAF31
triadic
#8AAF31 #318AAF #AF318A
tetradic
#8AAF31 #31AF95 #5631AF #AF314B
square
#8AAF31 #31AF95 #5631AF #AF314B
split-complementary
#8AAF31 #314BAF #9531AF
monochromatic
#3F4F16 #647F24 #8AAF31 #A9CE4F #C0DB7F

Accessibility & contrast

On white

2.54
#8AAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#8AAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8AAF31
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8AAF31#FFFFFF#000000##000000
##8AAF311.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#B4A23C
Tritanopia (blue-blind)
#90A696
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #8aaf31;
/* rgb */ color: rgb(138, 175, 49);
/* oklch */ color: oklch(70.3% 0.155 124.7);
Tailwind
colors: {
  custom: {
    50: '#b0c771',
    500: '#8aaf31',
    950: '#000000',
  },
}
SCSS
$custom: #8aaf31;
$custom-light: #b0c771;
$custom-dark: #000000;
JSON
{
  "hex": "#8aaf31",
  "rgb": {
    "r": 138,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 77.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70286,
    "c": 0.15537,
    "h": 124.7
  },
  "luminance": 0.36285
}

Semantic roles & 50–950 ramp

primary
#8AAF31
secondary
#8E78C4
accent
#48E075
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8AAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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