#97B228#97B228

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

Color values

HEX#97B228
RGBrgb(151, 178, 40)
HSLhsl(72, 63%, 43%)
HSVhsv(72, 78%, 70%)
CMYKcmyk(15.2%, 0%, 77.5%, 30.2%)
CIE-LABlab(68.44, -27.11, 62.10)
CIE-LCHlch(68.44, 67.76, 113.58°)
OKLaboklab(71.87% -0.0805 0.1364)
OKLCHoklch(71.87% 0.158 120.5)
XYZxyz(29.0664, 38.5734, 7.9212)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97B228 #4328B2
analogous
#B28828 #97B228 #52B228
triadic
#97B228 #2897B2 #B22897
tetradic
#97B228 #28B288 #4328B2 #B22852
square
#97B228 #28B288 #4328B2 #B22852
split-complementary
#97B228 #2852B2 #8828B2
monochromatic
#424E12 #6D801D #97B228 #B8D543 #CBE075

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97B228#FFFFFF#000000##000000
##97B2281.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: #97b228;
/* rgb */ color: rgb(151, 178, 40);
/* oklch */ color: oklch(71.9% 0.158 120.5);
Tailwind
colors: {
  custom: {
    50: '#b9c96e',
    500: '#97b228',
    950: '#000000',
  },
}
SCSS
$custom: #97b228;
$custom-light: #b9c96e;
$custom-dark: #000000;
JSON
{
  "hex": "#97b228",
  "rgb": {
    "r": 151,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 71.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.7187,
    "c": 0.1584,
    "h": 120.5
  },
  "luminance": 0.38573
}

Semantic roles & 50–950 ramp

primary
#97B228
secondary
#806FC7
accent
#41E662
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #97B228

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

Preview Lab → · Contrast checker → · Palette generator →

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