#97B221#97B221

#97B221 is a light, vivid yellow-green. Relative luminance 0.385; OKLCH L 71.8% C 0.162 H 120.4°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#97B221
RGBrgb(151, 178, 33)
HSLhsl(71, 69%, 41%)
HSVhsv(71, 81%, 70%)
CMYKcmyk(15.2%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.41, -27.39, 64.10)
CIE-LCHlch(68.41, 69.71, 113.14°)
OKLaboklab(71.84% -0.0818 0.1395)
OKLCHoklch(71.84% 0.162 120.4)
XYZxyz(28.9580, 38.5300, 7.3500)
Luminance0.3853 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97B221 #3C21B2
analogous
#B28521 #97B221 #4FB221
triadic
#97B221 #2197B2 #B22197
tetradic
#97B221 #21B285 #3C21B2 #B2214F
square
#97B221 #21B285 #3C21B2 #B2214F
split-complementary
#97B221 #214FB2 #8521B2
monochromatic
#3F4B0E #6B7E17 #97B221 #BBDA36 #CDE36A

Accessibility & contrast

On white

2.41
#97B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#97B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97B221
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97B221#FFFFFF#000000##000000
##97B2211.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BAA731
Tritanopia (blue-blind)
#A0A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #97b221;
/* rgb */ color: rgb(151, 178, 33);
/* oklch */ color: oklch(71.8% 0.162 120.4);
Tailwind
colors: {
  custom: {
    50: '#b9c96b',
    500: '#97b221',
    950: '#000000',
  },
}
SCSS
$custom: #97b221;
$custom-light: #b9c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#97b221",
  "rgb": {
    "r": 151,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 71.172,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71835,
    "c": 0.1617,
    "h": 120.4
  },
  "luminance": 0.3853
}

Semantic roles & 50–950 ramp

primary
#97B221
secondary
#7866C9
accent
#3CEC5D
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #97B221

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

Preview Lab → · Contrast checker → · Palette generator →

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