Technically, giving away or transferring a RuneScape account is against the game's rules. That said, plenty of people do it anyway, even though it's not allowed.
If you're considering it, just know you'd be going against the terms of service, which can carry consequences for the account involved.