Skip to content

#1d7f21

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

RGB
29, 127, 33
HSL
122°, 63%, 31%
CMYK
77, 0, 74, 50
Luminance
0.1555

At a glance

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

Hex
#1d7f21
Hue
122°
green
Saturation
63%
vivid
Lightness
31%
dark
Brightness
50%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1555
WCAG relative
Temperature
Cool
63/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.11:1
Closest name
Green
ΔE2000 2.8
Where it sits
Hue122° of 360°
Saturation63%
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#1d7f21
RGBrgb(29, 127, 33)
HSLhsl(122, 63%, 31%)
CMYKcmyk(77%, 0%, 74%, 50%)
LABlab(46.4 -46.4 41.1)
LCHlch(46.4 62.0 138.5)
OKLCHoklch(0.522 0.157 143.4)
Decimal1933089
Display P3color(display-p3 0.114 0.498 0.129)

Copy-ready code

/* CSS */
color: #1d7f21;
background-color: #1d7f21;
/* Tailwind (arbitrary) */
class="text-[#1d7f21] bg-[#1d7f21]"
/* SCSS */
$brand: #1d7f21;
/* SwiftUI */
Color(red: 0.114, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#1d7f21")
/* Flutter */
Color(0xFF1D7F21)
/* Python / OpenCV (BGR) */
(33, 127, 29)

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 #1d7f21 · 5.11:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.11:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.11:1
AA fail · AA large pass · AAA fail
Reading the other direction: #1d7f21 as text scores 5.11:1 on white and 4.11:1 on black.

Accessibility — WCAG contrast

Aa
#1d7f21 on white: 5.11:1
AA ✓ pass · AA-large · AAA
Aa
#1d7f21 on black: 4.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #827211
deuteranopia · #776B2B
tritanopia · #007B6C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1d7f21 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
#E8F7E9
#CCF0CD
#A4EAA6
#76E07A
#48D54E
#2EC734
#26A62B
#1d7f21
#1A611D
#103C12
Base = 800Lightest = 50 · #F4FBF4Darkest = 950 · #103C12
:root {
  --brand-50: #F4FBF4;
  --brand-100: #E8F7E9;
  --brand-200: #CCF0CD;
  --brand-300: #A4EAA6;
  --brand-400: #76E07A;
  --brand-500: #48D54E;
  --brand-600: #2EC734;
  --brand-700: #26A62B;
  --brand-800: #1d7f21;
  --brand-900: #1A611D;
  --brand-950: #103C12;
  --brand: #1d7f21;
  --brand-ink: #ffffff;
}

Colors that work with #1d7f21

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#F4FAF5
Tinted page background
Border#C0EDC2
Hairlines and dividers
Muted text#4B9B4E
Captions on the surface
Accent#6C1A82
Second voice, not a rival
Dark variant#18681B
Hover, pressed, headers
Light variant#EAFAEB
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 #1d7f21

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#7F1D7B
Analogous left#4A7F1D
Analogous right#1D7F52
Split-complement 1#521D7F
Split-complement 2#7F1D4A
Triadic 1#211D7F
Triadic 2#7F211D
Tetradic#1D4A7F

RGB percentages

Red11.4%
Green49.8%
Blue12.9%

CMYK percentages

Cyan77.2%
Magenta0.0%
Yellow74.0%
Key (black)50.2%

Color previews

#1d7f21 text on a black background

contrast 4.11:1

Card sample

#1d7f21 text on a white background

contrast 5.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1d7f21;
Background color
Panel with #1d7f21 background
background-color: #1d7f21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1d7f21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(29, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(29, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1d7f21;
background: linear-gradient(135deg, #1d7f21, #1D7F62);

Monochromatic scale

Palettes built from #1d7f21

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.

#1d7f21 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.

#1d7f21, answered

What color is #1d7f21?

#1d7f21 is a dark vivid green, closest to Green (ΔE2000 2.8). It sits at 122° on the hue wheel with 63% saturation and 31% lightness, which reads as cool.

What is the RGB value of #1d7f21?

rgb(29, 127, 33) — 29 red, 127 green and 33 blue out of 255, or 11.4% / 49.8% / 12.9% by channel.

Is #1d7f21 a light or a dark color?

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

Should I use black or white text on #1d7f21?

White. It scores 5.11:1 against #1d7f21, versus 4.11:1 for black — AA at any size.

What is the complementary color of #1d7f21?

#7F1D7B sits directly opposite on the wheel. Softer options are the split-complements #521D7F and #7F1D4A, which give the same contrast with far less vibration.

What colors go well with #1d7f21?

For interface work: #F4FAF5 as the surface, #C0EDC2 for borders, #4B9B4E for secondary text, #6C1A82 as an accent and #18681B for hover and pressed states. For a palette, the analogous pair #4A7F1D and #1D7F52 stays calm, while #7F1D7B is the loudest partner.

What is #1d7f21 in CMYK for printing?

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

Is #1d7f21 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 #3D7F1D; nudged cooler, #1B8145.

Work with #1d7f21 in the Color Lab