Skip to content

#21af2d

a dark, vivid green · cool · closest name: Lime Green

RGB
33, 175, 45
HSL
125°, 68%, 41%
CMYK
81, 0, 74, 31
Luminance
0.3117

At a glance

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

Hex
#21af2d
Hue
125°
green
Saturation
68%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
53%
weighted brightness
Luminance
0.3117
WCAG relative
Temperature
Cool
65/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
7.23:1
Closest name
Lime Green
ΔE2000 8.2
Where it sits
Hue125° of 360°
Saturation68%
Lightness41%
Temperature
Warm ← → Cool65% cool

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

Every format

HEX#21af2d
RGBrgb(33, 175, 45)
HSLhsl(125, 68%, 41%)
CMYKcmyk(81%, 0%, 74%, 31%)
LABlab(62.6 -60.5 53.1)
LCHlch(62.6 80.5 138.7)
OKLCHoklch(0.658 0.203 143.7)
Decimal2207533
Display P3color(display-p3 0.129 0.686 0.176)

Copy-ready code

/* CSS */
color: #21af2d;
background-color: #21af2d;
/* Tailwind (arbitrary) */
class="text-[#21af2d] bg-[#21af2d]"
/* SCSS */
$brand: #21af2d;
/* SwiftUI */
Color(red: 0.129, green: 0.686, blue: 0.176)
/* Android */
Color.parseColor("#21af2d")
/* Flutter */
Color(0xFF21AF2D)
/* Python / OpenCV (BGR) */
(45, 175, 33)

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 #21af2d · 7.23:1
Use #000000AAA at every size.
Aa
White text · 2.90:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.23:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #21af2d as text scores 2.90:1 on white and 7.23:1 on black.

Accessibility — WCAG contrast

Aa
#21af2d on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#21af2d on black: 7.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B39E14
deuteranopia · #A3933B
tritanopia · #00AA96

Color scale — 50 to 950

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

#F3FBF4
#E8F8E9
#CAF2CD
#A1EDA7
#71E47B
#42DB4F
#27CE35
#21af2d
#1A8923
#17641D
#0E3E12
Base = 700Lightest = 50 · #F3FBF4Darkest = 950 · #0E3E12
:root {
  --brand-50: #F3FBF4;
  --brand-100: #E8F8E9;
  --brand-200: #CAF2CD;
  --brand-300: #A1EDA7;
  --brand-400: #71E47B;
  --brand-500: #42DB4F;
  --brand-600: #27CE35;
  --brand-700: #21af2d;
  --brand-800: #1A8923;
  --brand-900: #17641D;
  --brand-950: #0E3E12;
  --brand: #21af2d;
  --brand-ink: #000000;
}

Colors that work with #21af2d

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#F4FAF5
Tinted page background
Border#C0EDC4
Hairlines and dividers
Muted text#4B9B51
Captions on the surface
Accent#9A1DB3
Second voice, not a rival
Dark variant#146B1C
Hover, pressed, headers
Light variant#EAFBEB
Selected rows, tints
Dark surface#142415
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 #21af2d

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#AF21A3
Analogous left#5CAF21
Analogous right#21AF74
Split-complement 1#7421AF
Split-complement 2#AF215C
Triadic 1#2D21AF
Triadic 2#AF2D21
Tetradic#215CAF

RGB percentages

Red12.9%
Green68.6%
Blue17.6%

CMYK percentages

Cyan81.1%
Magenta0.0%
Yellow74.3%
Key (black)31.4%

Color previews

#21af2d text on a black background

contrast 7.23:1

Card sample

#21af2d text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #21af2d;
Background color
Panel with #21af2d background
background-color: #21af2d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #21af2d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(33, 175, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 175, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #21af2d;
background: linear-gradient(135deg, #21af2d, #21AF8C);

Monochromatic scale

Palettes built from #21af2d

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.

#21af2d 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.

#21af2d, answered

What color is #21af2d?

#21af2d is a dark vivid green, closest to Lime Green (ΔE2000 8.2). It sits at 125° on the hue wheel with 68% saturation and 41% lightness, which reads as cool.

What is the RGB value of #21af2d?

rgb(33, 175, 45) — 33 red, 175 green and 45 blue out of 255, or 12.9% / 68.6% / 17.6% by channel.

Is #21af2d a light or a dark color?

It is a mid-tone. Relative luminance is 0.3117 and perceived brightness is 53%, so black text on it reaches 7.23:1.

Should I use black or white text on #21af2d?

Black. It scores 7.23:1 against #21af2d, versus 2.90:1 for white — AAA at any size.

What is the complementary color of #21af2d?

#AF21A3 sits directly opposite on the wheel. Softer options are the split-complements #7421AF and #AF215C, which give the same contrast with far less vibration.

What colors go well with #21af2d?

For interface work: #F4FAF5 as the surface, #C0EDC4 for borders, #4B9B51 for secondary text, #9A1DB3 as an accent and #146B1C for hover and pressed states. For a palette, the analogous pair #5CAF21 and #21AF74 stays calm, while #AF21A3 is the loudest partner.

What is #21af2d in CMYK for printing?

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

Is #21af2d warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #49AF21; nudged cooler, #1FB161.

Work with #21af2d in the Color Lab