#97AC21#97AC21

#97AC21 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.4% C 0.155 H 118.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#97AC21
RGBrgb(151, 172, 33)
HSLhsl(69, 68%, 40%)
HSVhsv(69, 81%, 67%)
CMYKcmyk(12.2%, 0%, 80.8%, 32.5%)
CIE-LABlab(66.67, -24.47, 62.56)
CIE-LCHlch(66.67, 67.18, 111.36°)
OKLaboklab(70.43% -0.0738 0.1362)
OKLCHoklch(70.43% 0.155 118.4)
XYZxyz(27.7902, 36.1944, 6.9608)
Luminance0.3619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97AC21 #3621AC
analogous
#AC7C21 #97AC21 #51AC21
triadic
#97AC21 #2197AC #AC2197
tetradic
#97AC21 #21AC7C #3621AC #AC2151
square
#97AC21 #21AC7C #3621AC #AC2151
split-complementary
#97AC21 #2151AC #7C21AC
monochromatic
#3D450D #6A7917 #97AC21 #BFD832 #CFE266

Accessibility & contrast

On white

2.55
#97AC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#97AC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97AC21
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97AC21#FFFFFF#000000##000000
##97AC211.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#A1A293
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #97ac21;
/* rgb */ color: rgb(151, 172, 33);
/* oklch */ color: oklch(70.4% 0.155 118.4);
Tailwind
colors: {
  custom: {
    50: '#b9c46a',
    500: '#97ac21',
    950: '#000000',
  },
}
SCSS
$custom: #97ac21;
$custom-light: #b9c46a;
$custom-dark: #000000;
JSON
{
  "hex": "#97ac21",
  "rgb": {
    "r": 151,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 69.065,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70431,
    "c": 0.15491,
    "h": 118.4
  },
  "luminance": 0.36194
}

Semantic roles & 50–950 ramp

primary
#97AC21
secondary
#7162C7
accent
#3DEB57
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97AC21

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

Preview Lab → · Contrast checker → · Palette generator →

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