Melanocortin receptor-specific compounds with diamine groups of the general formulaand pharmaceutically acceptable salts thereof, where W is a diamine heteroatom unit with at least one cationic center, hydrogen bond donor or hydrogen bond acceptor, J, Q, L1, L2, L3, R1a, R1b, R2a, R2b and X are as defined in the specification, and the carbon atom marked with an asterisk can have any stereochemical configuration. Compounds disclosed herein bind to one or more melanocortin receptors and may be an agonist, a partial agonist, an antagonist, an inverse agonist or an antagonist of an inverse agonist as to one or more melanocortin receptors, and may be employed for treatment of one or more melanocortin receptor-associated conditions or disorders, including specifically treatment of obesity and related conditions.