#97AF31#97AF31

#97AF31 is a light, vivid yellow-green. Relative luminance 0.375; OKLCH L 71.2% C 0.150 H 119.8°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#97AF31
RGBrgb(151, 175, 49)
HSLhsl(71, 56%, 44%)
HSVhsv(71, 72%, 69%)
CMYKcmyk(13.7%, 0%, 72%, 31.4%)
CIE-LABlab(67.62, -25.20, 58.28)
CIE-LCHlch(67.62, 63.49, 113.39°)
OKLaboklab(71.23% -0.0745 0.1299)
OKLCHoklch(71.23% 0.15 119.8)
XYZxyz(28.6474, 37.4611, 8.6267)
Luminance0.3746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97AF31 #4931AF
analogous
#AF8831 #97AF31 #58AF31
triadic
#97AF31 #3197AF #AF3197
tetradic
#97AF31 #31AF88 #4931AF #AF3158
square
#97AF31 #31AF88 #4931AF #AF3158
split-complementary
#97AF31 #3158AF #8831AF
monochromatic
#444F16 #6E7F24 #97AF31 #B6CE4F #CADB7F

Accessibility & contrast

On white

2.47
#97AF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#97AF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97AF31
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97AF31#FFFFFF#000000##000000
##97AF311.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51A
Deuteranopia (green-blind)
#B7A53C
Tritanopia (blue-blind)
#A0A696
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #97af31;
/* rgb */ color: rgb(151, 175, 49);
/* oklch */ color: oklch(71.2% 0.150 119.8);
Tailwind
colors: {
  custom: {
    50: '#b9c672',
    500: '#97af31',
    950: '#000000',
  },
}
SCSS
$custom: #97af31;
$custom-light: #b9c672;
$custom-dark: #000000;
JSON
{
  "hex": "#97af31",
  "rgb": {
    "r": 151,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 71.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71226,
    "c": 0.14973,
    "h": 119.8
  },
  "luminance": 0.37461
}

Semantic roles & 50–950 ramp

primary
#97AF31
secondary
#8678C4
accent
#48E065
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #97AF31

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

Preview Lab → · Contrast checker → · Palette generator →

#97AF31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva