#97AA21#97AA21

#97AA21 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.0% C 0.153 H 117.7°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#97AA21
RGBrgb(151, 170, 33)
HSLhsl(68, 67%, 40%)
HSVhsv(68, 81%, 67%)
CMYKcmyk(11.2%, 0%, 80.6%, 33.3%)
CIE-LABlab(66.09, -23.48, 62.05)
CIE-LCHlch(66.09, 66.34, 110.73°)
OKLaboklab(69.97% -0.0711 0.1351)
OKLCHoklch(69.97% 0.153 117.7)
XYZxyz(27.4124, 35.4389, 6.8348)
Luminance0.3544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97AA21 #3421AA
analogous
#AA7821 #97AA21 #53AA21
triadic
#97AA21 #2197AA #AA2197
tetradic
#97AA21 #21AA78 #3421AA #AA2153
square
#97AA21 #21AA78 #3421AA #AA2153
split-complementary
#97AA21 #2153AA #7821AA
monochromatic
#3C430D #697717 #97AA21 #C0D731 #D0E164

Accessibility & contrast

On white

2.60
#97AA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#97AA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97AA21
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97AA21#FFFFFF#000000##000000
##97AA211.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B4A12F
Tritanopia (blue-blind)
#A1A091
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #97aa21;
/* rgb */ color: rgb(151, 170, 33);
/* oklch */ color: oklch(70.0% 0.153 117.7);
Tailwind
colors: {
  custom: {
    50: '#b9c36a',
    500: '#97aa21',
    950: '#000000',
  },
}
SCSS
$custom: #97aa21;
$custom-light: #b9c36a;
$custom-dark: #000000;
JSON
{
  "hex": "#97aa21",
  "rgb": {
    "r": 151,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 68.321,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69965,
    "c": 0.15267,
    "h": 117.7
  },
  "luminance": 0.35439
}

Semantic roles & 50–950 ramp

primary
#97AA21
secondary
#6F61C6
accent
#3DEA55
background
#FBFBF6
surface
#F7F7EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97AA21

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

Preview Lab → · Contrast checker → · Palette generator →

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