#97B227#97B227

#97B227 is a light, vivid yellow-green. Relative luminance 0.386; OKLCH L 71.9% C 0.159 H 120.5°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#97B227
RGBrgb(151, 178, 39)
HSLhsl(72, 64%, 43%)
HSVhsv(72, 78%, 70%)
CMYKcmyk(15.2%, 0%, 78.1%, 30.2%)
CIE-LABlab(68.44, -27.15, 62.40)
CIE-LCHlch(68.44, 68.05, 113.51°)
OKLaboklab(71.86% -0.0807 0.1369)
OKLCHoklch(71.86% 0.159 120.5)
XYZxyz(29.0497, 38.5667, 7.8328)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97B227 #4227B2
analogous
#B28827 #97B227 #51B227
triadic
#97B227 #2797B2 #B22797
tetradic
#97B227 #27B288 #4227B2 #B22751
square
#97B227 #27B288 #4227B2 #B22751
split-complementary
#97B227 #2751B2 #8827B2
monochromatic
#424E11 #6C801C #97B227 #B8D541 #CBE073

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97B227#FFFFFF#000000##000000
##97B2271.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)
#BDA700
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#A0A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #97b227;
/* rgb */ color: rgb(151, 178, 39);
/* oklch */ color: oklch(71.9% 0.159 120.5);
Tailwind
colors: {
  custom: {
    50: '#b9c96d',
    500: '#97b227',
    950: '#000000',
  },
}
SCSS
$custom: #97b227;
$custom-light: #b9c96d;
$custom-dark: #000000;
JSON
{
  "hex": "#97b227",
  "rgb": {
    "r": 151,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 71.655,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71865,
    "c": 0.15891,
    "h": 120.5
  },
  "luminance": 0.38567
}

Semantic roles & 50–950 ramp

primary
#97B227
secondary
#7F6DC8
accent
#41E761
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #97B227

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

Preview Lab → · Contrast checker → · Palette generator →

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