Skip to content

#97cf21

a balanced, vivid green · warm · closest name: Yellow Green

RGB
151, 207, 33
HSL
79°, 73%, 47%
CMYK
27, 0, 84, 19
Luminance
0.5131

At a glance

Every number on this page in one read: what #97cf21 is made of, how bright it looks, and which way it leans.

Hex
#97cf21
Hue
79°
green
Saturation
73%
vivid
Lightness
47%
balanced
Brightness
81%
HSV value
Perceived
70%
weighted brightness
Luminance
0.5131
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
11.26:1
Closest name
Yellow Green
ΔE2000 1.2
Where it sits
Hue79° of 360°
Saturation73%
Lightness47%
Temperature
Warm ← → Cool41% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#97cf21
RGBrgb(151, 207, 33)
HSLhsl(79, 73%, 47%)
CMYKcmyk(27%, 0%, 84%, 19%)
LABlab(76.9 -40.7 71.5)
LCHlch(76.9 82.3 119.7)
OKLCHoklch(0.787 0.195 127.2)
Decimal9948961
Display P3color(display-p3 0.592 0.812 0.129)

Copy-ready code

/* CSS */
color: #97cf21;
background-color: #97cf21;
/* Tailwind (arbitrary) */
class="text-[#97cf21] bg-[#97cf21]"
/* SCSS */
$brand: #97cf21;
/* SwiftUI */
Color(red: 0.592, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#97cf21")
/* Flutter */
Color(0xFF97CF21)
/* Python / OpenCV (BGR) */
(33, 207, 151)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #97cf21 · 11.26:1
Use #000000AAA at every size.
Aa
White text · 1.86:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.26:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #97cf21 as text scores 1.86:1 on white and 11.26:1 on black.

Accessibility — WCAG contrast

Aa
#97cf21 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#97cf21 on black: 11.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DAC000
deuteranopia · #D2BD37
tritanopia · #9DC5B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #97cf21 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9FCF3
#F3F8E7
#E5F3C9
#D5F09E
#C1E86E
#ACE03D
#97cf21
#80B01C
#678D16
#4C6614
#2F400D
Base = 600Lightest = 50 · #F9FCF3Darkest = 950 · #2F400D
:root {
  --brand-50: #F9FCF3;
  --brand-100: #F3F8E7;
  --brand-200: #E5F3C9;
  --brand-300: #D5F09E;
  --brand-400: #C1E86E;
  --brand-500: #ACE03D;
  --brand-600: #97cf21;
  --brand-700: #80B01C;
  --brand-800: #678D16;
  --brand-900: #4C6614;
  --brand-950: #2F400D;
  --brand: #97cf21;
  --brand-ink: #000000;
}

Colors that work with #97cf21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8FAF4
Tinted page background
Border#DEEDC0
Hairlines and dividers
Muted text#819B4B
Captions on the surface
Accent#291CD4
Second voice, not a rival
Dark variant#506E12
Hover, pressed, headers
Light variant#F6FBE9
Selected rows, tints
Dark surface#1F2414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #97cf21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#5921CF
Analogous left#CFB021
Analogous right#40CF21
Split-complement 1#2140CF
Split-complement 2#B021CF
Triadic 1#2197CF
Triadic 2#CF2197
Tetradic#21CFB0

RGB percentages

Red59.2%
Green81.2%
Blue12.9%

CMYK percentages

Cyan27.1%
Magenta0.0%
Yellow84.1%
Key (black)18.8%

Color previews

#97cf21 text on a black background

contrast 11.26:1

Card sample

#97cf21 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #97cf21;
Background color
Panel with #97cf21 background
background-color: #97cf21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #97cf21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #97cf21;
background: linear-gradient(135deg, #97cf21, #23CF21);

Monochromatic scale

Palettes built from #97cf21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#97cf21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#97cf21, answered

What color is #97cf21?

#97cf21 is a balanced vivid green, closest to Yellow Green (ΔE2000 1.2). It sits at 79° on the hue wheel with 73% saturation and 47% lightness, which reads as warm.

What is the RGB value of #97cf21?

rgb(151, 207, 33) — 151 red, 207 green and 33 blue out of 255, or 59.2% / 81.2% / 12.9% by channel.

Is #97cf21 a light or a dark color?

It is a light color. Relative luminance is 0.5131 and perceived brightness is 70%, so black text on it reaches 11.26:1.

Should I use black or white text on #97cf21?

Black. It scores 11.26:1 against #97cf21, versus 1.86:1 for white — AAA at any size.

What is the complementary color of #97cf21?

#5921CF sits directly opposite on the wheel. Softer options are the split-complements #2140CF and #B021CF, which give the same contrast with far less vibration.

What colors go well with #97cf21?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #819B4B for secondary text, #291CD4 as an accent and #506E12 for hover and pressed states. For a palette, the analogous pair #CFB021 and #40CF21 stays calm, while #5921CF is the loudest partner.

What is #97cf21 in CMYK for printing?

cmyk(27%, 0%, 84%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #97cf21 warm or cool?

Warm — it scores 41 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CFC721; nudged cooler, #56D21F.

Work with #97cf21 in the Color Lab