Skip to content

#2a7821

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

RGB
42, 120, 33
HSL
114°, 57%, 30%
CMYK
65, 0, 73, 53
Luminance
0.1403

At a glance

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

Hex
#2a7821
Hue
114°
green
Saturation
57%
vivid
Lightness
30%
dark
Brightness
47%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1403
WCAG relative
Temperature
Cool
60/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.52:1
Closest name
Green
ΔE2000 4.3
Where it sits
Hue114° of 360°
Saturation57%
Lightness30%
Temperature
Warm ← → Cool60% 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#2a7821
RGBrgb(42, 120, 33)
HSLhsl(114, 57%, 30%)
CMYKcmyk(65%, 0%, 73%, 53%)
LABlab(44.3 -41.2 39.0)
LCHlch(44.3 56.7 136.6)
OKLCHoklch(0.506 0.143 141.6)
Decimal2783265
Display P3color(display-p3 0.165 0.471 0.129)

Copy-ready code

/* CSS */
color: #2a7821;
background-color: #2a7821;
/* Tailwind (arbitrary) */
class="text-[#2a7821] bg-[#2a7821]"
/* SCSS */
$brand: #2a7821;
/* SwiftUI */
Color(red: 0.165, green: 0.471, blue: 0.129)
/* Android */
Color.parseColor("#2a7821")
/* Flutter */
Color(0xFF2A7821)
/* Python / OpenCV (BGR) */
(33, 120, 42)

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

Accessibility — WCAG contrast

Aa
#2a7821 on white: 5.52:1
AA ✓ pass · AA-large · AAA
Aa
#2a7821 on black: 3.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7B6D14
deuteranopia · #716629
tritanopia · #1C7467

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2a7821 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.

#F5FBF4
#EAF6E9
#D1EECD
#AEE7A7
#85DB7B
#5CCF4F
#43C035
#38A02C
#2a7821
#245D1D
#163A12
Base = 800Lightest = 50 · #F5FBF4Darkest = 950 · #163A12
:root {
  --brand-50: #F5FBF4;
  --brand-100: #EAF6E9;
  --brand-200: #D1EECD;
  --brand-300: #AEE7A7;
  --brand-400: #85DB7B;
  --brand-500: #5CCF4F;
  --brand-600: #43C035;
  --brand-700: #38A02C;
  --brand-800: #2a7821;
  --brand-900: #245D1D;
  --brand-950: #163A12;
  --brand: #2a7821;
  --brand-ink: #ffffff;
}

Colors that work with #2a7821

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#F5FAF4
Tinted page background
Border#C4EDC0
Hairlines and dividers
Muted text#539B4B
Captions on the surface
Accent#5A1E7B
Second voice, not a rival
Dark variant#23641B
Hover, pressed, headers
Light variant#ECFAEB
Selected rows, tints
Dark surface#152414
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 #2a7821

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#6F2178
Analogous left#557821
Analogous right#217844
Split-complement 1#442178
Split-complement 2#782155
Triadic 1#212A78
Triadic 2#78212A
Tetradic#215578

RGB percentages

Red16.5%
Green47.1%
Blue12.9%

CMYK percentages

Cyan65.0%
Magenta0.0%
Yellow72.5%
Key (black)52.9%

Color previews

#2a7821 text on a black background

contrast 3.81:1

Card sample

#2a7821 text on a white background

contrast 5.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2a7821;
Background color
Panel with #2a7821 background
background-color: #2a7821;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 120, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 120, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a7821;
background: linear-gradient(135deg, #2a7821, #217852);

Monochromatic scale

Palettes built from #2a7821

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.

#2a7821 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.

#2a7821, answered

What color is #2a7821?

#2a7821 is a dark vivid green, closest to Green (ΔE2000 4.3). It sits at 114° on the hue wheel with 57% saturation and 30% lightness, which reads as cool.

What is the RGB value of #2a7821?

rgb(42, 120, 33) — 42 red, 120 green and 33 blue out of 255, or 16.5% / 47.1% / 12.9% by channel.

Is #2a7821 a light or a dark color?

It is a dark color. Relative luminance is 0.1403 and perceived brightness is 37%, so white text on it reaches 5.52:1.

Should I use black or white text on #2a7821?

White. It scores 5.52:1 against #2a7821, versus 3.81:1 for black — AA at any size.

What is the complementary color of #2a7821?

#6F2178 sits directly opposite on the wheel. Softer options are the split-complements #442178 and #782155, which give the same contrast with far less vibration.

What colors go well with #2a7821?

For interface work: #F5FAF4 as the surface, #C4EDC0 for borders, #539B4B for secondary text, #5A1E7B as an accent and #23641B for hover and pressed states. For a palette, the analogous pair #557821 and #217844 stays calm, while #6F2178 is the loudest partner.

What is #2a7821 in CMYK for printing?

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

Is #2a7821 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4A7821; nudged cooler, #1F7A37.

Work with #2a7821 in the Color Lab