Skip to content

#217e21

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

RGB
33, 126, 33
HSL
120°, 59%, 31%
CMYK
74, 0, 74, 51
Luminance
0.1535

At a glance

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

Hex
#217e21
Hue
120°
green
Saturation
59%
vivid
Lightness
31%
dark
Brightness
49%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1535
WCAG relative
Temperature
Cool
63/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.16:1
Closest name
Green
ΔE2000 2.9
Where it sits
Hue120° of 360°
Saturation59%
Lightness31%
Temperature
Warm ← → Cool63% 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#217e21
RGBrgb(33, 126, 33)
HSLhsl(120, 59%, 31%)
CMYKcmyk(74%, 0%, 74%, 51%)
LABlab(46.1 -45.4 40.8)
LCHlch(46.1 61.0 138.0)
OKLCHoklch(0.520 0.154 143.0)
Decimal2194977
Display P3color(display-p3 0.129 0.494 0.129)

Copy-ready code

/* CSS */
color: #217e21;
background-color: #217e21;
/* Tailwind (arbitrary) */
class="text-[#217e21] bg-[#217e21]"
/* SCSS */
$brand: #217e21;
/* SwiftUI */
Color(red: 0.129, green: 0.494, blue: 0.129)
/* Android */
Color.parseColor("#217e21")
/* Flutter */
Color(0xFF217E21)
/* Python / OpenCV (BGR) */
(33, 126, 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#ffffff on #217e21 · 5.16:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.16:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.07:1
AA fail · AA large pass · AAA fail
Reading the other direction: #217e21 as text scores 5.16:1 on white and 4.07:1 on black.

Accessibility — WCAG contrast

Aa
#217e21 on white: 5.16:1
AA ✓ pass · AA-large · AAA
Aa
#217e21 on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #817212
deuteranopia · #766A2A
tritanopia · #017A6C

Color scale — 50 to 950

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

#F4FBF4
#E9F7E9
#CDEFCD
#A6E8A6
#7ADC7A
#4DD04D
#33C233
#2AA22A
#217e21
#1C5E1C
#123B12
Base = 800Lightest = 50 · #F4FBF4Darkest = 950 · #123B12
:root {
  --brand-50: #F4FBF4;
  --brand-100: #E9F7E9;
  --brand-200: #CDEFCD;
  --brand-300: #A6E8A6;
  --brand-400: #7ADC7A;
  --brand-500: #4DD04D;
  --brand-600: #33C233;
  --brand-700: #2AA22A;
  --brand-800: #217e21;
  --brand-900: #1C5E1C;
  --brand-950: #123B12;
  --brand: #217e21;
  --brand-ink: #ffffff;
}

Colors that work with #217e21

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

Text on it#ffffff
White wins here
Surface#F4FAF4
Tinted page background
Border#C0EDC0
Hairlines and dividers
Muted text#4B9B4B
Captions on the surface
Accent#681E81
Second voice, not a rival
Dark variant#1A651A
Hover, pressed, headers
Light variant#EBFAEB
Selected rows, tints
Dark surface#142414
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 #217e21

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

Works well for
  • Body text and links on white
  • 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
  • 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#7E217E
Analogous left#507E21
Analogous right#217E50
Split-complement 1#50217E
Split-complement 2#7E2150
Triadic 1#21217E
Triadic 2#7E2121
Tetradic#21507E

RGB percentages

Red12.9%
Green49.4%
Blue12.9%

CMYK percentages

Cyan73.8%
Magenta0.0%
Yellow73.8%
Key (black)50.6%

Color previews

#217e21 text on a black background

contrast 4.07:1

Card sample

#217e21 text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #217e21;
Background color
Panel with #217e21 background
background-color: #217e21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #217e21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(33, 126, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 126, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #217e21;
background: linear-gradient(135deg, #217e21, #217E5F);

Monochromatic scale

Palettes built from #217e21

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.

#217e21 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.

#217e21, answered

What color is #217e21?

#217e21 is a dark vivid green, closest to Green (ΔE2000 2.9). It sits at 120° on the hue wheel with 59% saturation and 31% lightness, which reads as cool.

What is the RGB value of #217e21?

rgb(33, 126, 33) — 33 red, 126 green and 33 blue out of 255, or 12.9% / 49.4% / 12.9% by channel.

Is #217e21 a light or a dark color?

It is a dark color. Relative luminance is 0.1535 and perceived brightness is 39%, so white text on it reaches 5.16:1.

Should I use black or white text on #217e21?

White. It scores 5.16:1 against #217e21, versus 4.07:1 for black — AA at any size.

What is the complementary color of #217e21?

#7E217E sits directly opposite on the wheel. Softer options are the split-complements #50217E and #7E2150, which give the same contrast with far less vibration.

What colors go well with #217e21?

For interface work: #F4FAF4 as the surface, #C0EDC0 for borders, #4B9B4B for secondary text, #681E81 as an accent and #1A651A for hover and pressed states. For a palette, the analogous pair #507E21 and #217E50 stays calm, while #7E217E is the loudest partner.

What is #217e21 in CMYK for printing?

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

Is #217e21 warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #437E21; nudged cooler, #1F8043.

Work with #217e21 in the Color Lab