#7afb2c
a balanced, electric green · neutral · closest name: Lawn Green
At a glance
Every number on this page in one read: what #7afb2c 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 | #7afb2c |
| RGB | rgb(122, 251, 44) |
| HSL | hsl(97, 96%, 58%) |
| CMYK | cmyk(51%, 0%, 83%, 2%) |
| LAB | lab(88.6 -67.1 78.8) |
| LCH | lch(88.6 103.5 130.4) |
| OKLCH | oklch(0.879 0.254 137.2) |
| Decimal | 8059692 |
| Display P3 | color(display-p3 0.478 0.984 0.173) |
Copy-ready code
/* CSS */
color: #7afb2c;
background-color: #7afb2c;
/* Tailwind (arbitrary) */
class="text-[#7afb2c] bg-[#7afb2c]"
/* SCSS */
$brand: #7afb2c;
/* SwiftUI */
Color(red: 0.478, green: 0.984, blue: 0.173)
/* Android */
Color.parseColor("#7afb2c")
/* Flutter */
Color(0xFF7AFB2C)
/* Python / OpenCV (BGR) */
(44, 251, 122)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. #7afb2c is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F6FDF1;
--brand-100: #EDFCE4;
--brand-200: #D7FAC1;
--brand-300: #BAFD91;
--brand-400: #97FC5A;
--brand-500: #7afb2c;
--brand-600: #5DF005;
--brand-700: #4EC804;
--brand-800: #3EA003;
--brand-900: #307307;
--brand-950: #1E4804;
--brand: #7afb2c;
--brand-ink: #000000;
}Colors that work with #7afb2c
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 #7afb2c
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
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #AD2CFB | Directly opposite — maximum tension | |
| Analogous left | #E1FB2C | Neighbour, quieter | |
| Analogous right | #2CFB45 | Neighbour, quieter | |
| Split-complement 1 | #452CFB | Contrast without the clash | |
| Split-complement 2 | #FB2CE1 | Contrast without the clash | |
| Triadic 1 | #2C7AFB | Even thirds — balanced and loud | |
| Triadic 2 | #FB2C7A | Even thirds — balanced and loud | |
| Tetradic | #2CE1FB | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#7afb2c text on a black background
contrast 15.66:1
#7afb2c text on a white background
contrast 1.34:1
CSS3 live lab
The quick brown fox
color: #7afb2c;
background-color: #7afb2c;
Glowing headline
text-shadow: 2px 2px 8px #7afb2c;
Soft neon halo
text-shadow: 0 0 14px rgba(122, 251, 44, 0.45);
box-shadow: 0 12px 32px -8px rgba(122, 251, 44, 0.45);
border: 3px solid #7afb2c; background: linear-gradient(135deg, #7afb2c, #2CFB68);
Monochromatic scale
Palettes built from #7afb2c
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: Chartreuse (#7fff00) — ΔE2000 1.8 away, with its history, psychology and brand usage.
#7afb2c in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#7afb2c, answered
What color is #7afb2c?
#7afb2c is a balanced electric green, closest to Lawn Green (ΔE2000 1.4). It sits at 97° on the hue wheel with 96% saturation and 58% lightness, which reads as neutral.
What is the RGB value of #7afb2c?
rgb(122, 251, 44) — 122 red, 251 green and 44 blue out of 255, or 47.8% / 98.4% / 17.3% by channel.
Is #7afb2c a light or a dark color?
It is a light color. Relative luminance is 0.7331 and perceived brightness is 80%, so black text on it reaches 15.66:1.
Should I use black or white text on #7afb2c?
Black. It scores 15.66:1 against #7afb2c, versus 1.34:1 for white — AAA at any size.
What is the complementary color of #7afb2c?
#AD2CFB sits directly opposite on the wheel. Softer options are the split-complements #452CFB and #FB2CE1, which give the same contrast with far less vibration.
What colors go well with #7afb2c?
For interface work: #F7FAF4 as the surface, #D1EDC0 for borders, #699B4B for secondary text, #7828FF as an accent and #317D02 for hover and pressed states. For a palette, the analogous pair #E1FB2C and #2CFB45 stays calm, while #AD2CFB is the loudest partner.
What is #7afb2c in CMYK for printing?
cmyk(51%, 0%, 83%, 2%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #7afb2c warm or cool?
Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C6FB2C; nudged cooler, #2CFD2A.