Skip to content

#7fb821

a dark, vivid green · neutral · closest name: Yellow Green

RGB
127, 184, 33
HSL
83°, 70%, 43%
CMYK
31, 0, 82, 28
Luminance
0.3890

At a glance

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

Hex
#7fb821
Hue
83°
green
Saturation
70%
vivid
Lightness
43%
dark
Brightness
72%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3890
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
8.78:1
Closest name
Yellow Green
ΔE2000 6
Where it sits
Hue83° of 360°
Saturation70%
Lightness43%
Temperature
Warm ← → Cool44% cool

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

Every format

HEX#7fb821
RGBrgb(127, 184, 33)
HSLhsl(83, 70%, 43%)
CMYKcmyk(31%, 0%, 82%, 28%)
LABlab(68.7 -39.7 63.8)
LCHlch(68.7 75.1 121.9)
OKLCHoklch(0.717 0.180 129.2)
Decimal8370209
Display P3color(display-p3 0.498 0.722 0.129)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#7fb821 on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#7fb821 on black: 8.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C1AA00
deuteranopia · #B9A633
tritanopia · #83B09D

Color scale — 50 to 950

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

#F8FCF3
#F2F8E7
#E3F2CA
#D1EEA0
#B9E570
#A2DD41
#8FD025
#7fb821
#608A19
#476416
#2C3F0E
Base = 700Lightest = 50 · #F8FCF3Darkest = 950 · #2C3F0E
:root {
  --brand-50: #F8FCF3;
  --brand-100: #F2F8E7;
  --brand-200: #E3F2CA;
  --brand-300: #D1EEA0;
  --brand-400: #B9E570;
  --brand-500: #A2DD41;
  --brand-600: #8FD025;
  --brand-700: #7fb821;
  --brand-800: #608A19;
  --brand-900: #476416;
  --brand-950: #2C3F0E;
  --brand: #7fb821;
  --brand-ink: #000000;
}

Colors that work with #7fb821

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#DCEDC0
Hairlines and dividers
Muted text#7D9B4B
Captions on the surface
Accent#311DBC
Second voice, not a rival
Dark variant#4B6C13
Hover, pressed, headers
Light variant#F4FBE9
Selected rows, tints
Dark surface#1E2414
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 #7fb821

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#5A21B8
Analogous left#B8A521
Analogous right#34B821
Split-complement 1#2134B8
Split-complement 2#A521B8
Triadic 1#217FB8
Triadic 2#B8217F
Tetradic#21B8A5

RGB percentages

Red49.8%
Green72.2%
Blue12.9%

CMYK percentages

Cyan31.0%
Magenta0.0%
Yellow82.1%
Key (black)27.8%

Color previews

#7fb821 text on a black background

contrast 8.78:1

Card sample

#7fb821 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7fb821;
Background color
Panel with #7fb821 background
background-color: #7fb821;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7fb821;
background: linear-gradient(135deg, #7fb821, #21B827);

Monochromatic scale

Palettes built from #7fb821

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.

#7fb821 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.

#7fb821, answered

What color is #7fb821?

#7fb821 is a dark vivid green, closest to Yellow Green (ΔE2000 6). It sits at 83° on the hue wheel with 70% saturation and 43% lightness, which reads as neutral.

What is the RGB value of #7fb821?

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

Is #7fb821 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3890 and perceived brightness is 62%, so black text on it reaches 8.78:1.

Should I use black or white text on #7fb821?

Black. It scores 8.78:1 against #7fb821, versus 2.39:1 for white — AAA at any size.

What is the complementary color of #7fb821?

#5A21B8 sits directly opposite on the wheel. Softer options are the split-complements #2134B8 and #A521B8, which give the same contrast with far less vibration.

What colors go well with #7fb821?

For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7D9B4B for secondary text, #311DBC as an accent and #4B6C13 for hover and pressed states. For a palette, the analogous pair #B8A521 and #34B821 stays calm, while #5A21B8 is the loudest partner.

What is #7fb821 in CMYK for printing?

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

Is #7fb821 warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B6B821; nudged cooler, #47BA1F.

Work with #7fb821 in the Color Lab