#7fac2f
a dark, vivid green · neutral · closest name: Yellow Green
At a glance
Every number on this page in one read: what #7fac2f is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #7fac2f |
| RGB | rgb(127, 172, 47) |
| HSL | hsl(82, 57%, 43%) |
| CMYK | cmyk(26%, 0%, 73%, 33%) |
| LAB | lab(65.1 -33.6 56.0) |
| LCH | lch(65.1 65.3 121.0) |
| OKLCH | oklch(0.688 0.158 127.5) |
| Decimal | 8367151 |
| Display P3 | color(display-p3 0.498 0.675 0.184) |
Copy-ready code
/* CSS */
color: #7fac2f;
background-color: #7fac2f;
/* Tailwind (arbitrary) */
class="text-[#7fac2f] bg-[#7fac2f]"
/* SCSS */
$brand: #7fac2f;
/* SwiftUI */
Color(red: 0.498, green: 0.675, blue: 0.184)
/* Android */
Color.parseColor("#7fac2f")
/* Flutter */
Color(0xFF7FAC2F)
/* Python / OpenCV (BGR) */
(47, 172, 127)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #7fac2f 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.
:root {
--brand-50: #F8FBF4;
--brand-100: #F2F7E9;
--brand-200: #E3EFCD;
--brand-300: #D0E7A7;
--brand-400: #B8DB7B;
--brand-500: #A1CF4F;
--brand-600: #8EC035;
--brand-700: #7fac2f;
--brand-800: #5F8023;
--brand-900: #465D1D;
--brand-950: #2C3A12;
--brand: #7fac2f;
--brand-ink: #000000;
}Colors that work with #7fac2f
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #7fac2f
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #5C2FAC | Directly opposite — maximum tension | |
| Analogous left | #AC9A2F | Neighbour, quieter | |
| Analogous right | #40AC2F | Neighbour, quieter | |
| Split-complement 1 | #2F40AC | Contrast without the clash | |
| Split-complement 2 | #9A2FAC | Contrast without the clash | |
| Triadic 1 | #2F7FAC | Even thirds — balanced and loud | |
| Triadic 2 | #AC2F7F | Even thirds — balanced and loud | |
| Tetradic | #2FAC9A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#7fac2f text on a black background
contrast 7.84:1
#7fac2f text on a white background
contrast 2.68:1
CSS3 live lab
The quick brown fox
color: #7fac2f;
background-color: #7fac2f;
Glowing headline
text-shadow: 2px 2px 8px #7fac2f;
Soft neon halo
text-shadow: 0 0 14px rgba(127, 172, 47, 0.45);
box-shadow: 0 12px 32px -8px rgba(127, 172, 47, 0.45);
border: 3px solid #7fac2f; background: linear-gradient(135deg, #7fac2f, #2FAC32);
Monochromatic scale
Palettes built from #7fac2f
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.
Closest color with a full write-up: Pistachio (#93c572) — ΔE2000 9.9 away, with its history, psychology and brand usage.
#7fac2f in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#7fac2f, answered
What color is #7fac2f?
#7fac2f is a dark vivid green, closest to Yellow Green (ΔE2000 9.2). It sits at 82° on the hue wheel with 57% saturation and 43% lightness, which reads as neutral.
What is the RGB value of #7fac2f?
rgb(127, 172, 47) — 127 red, 172 green and 47 blue out of 255, or 49.8% / 67.5% / 18.4% by channel.
Is #7fac2f a light or a dark color?
It is a mid-tone. Relative luminance is 0.3422 and perceived brightness is 59%, so black text on it reaches 7.84:1.
Should I use black or white text on #7fac2f?
Black. It scores 7.84:1 against #7fac2f, versus 2.68:1 for white — AAA at any size.
What is the complementary color of #7fac2f?
#5C2FAC sits directly opposite on the wheel. Softer options are the split-complements #2F40AC and #9A2FAC, which give the same contrast with far less vibration.
What colors go well with #7fac2f?
For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7E9B4B for secondary text, #392BB0 as an accent and #4A641B for hover and pressed states. For a palette, the analogous pair #AC9A2F and #40AC2F stays calm, while #5C2FAC is the loudest partner.
What is #7fac2f in CMYK for printing?
cmyk(26%, 0%, 73%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #7fac2f warm or cool?
Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ACAB2F; nudged cooler, #50AE2D.