Right
京 supplies the sound — jīng shifted to liàng through Old Chinese velar/lateral alternation, attested across this phonetic family.
京 itself pictures a tall watchtower or capital gate; the meaning doesn't carry. Same phonetic in
凉 cool,
谅 forgive,
椋 (a tree),
鲸 whale — a tight jīng / liàng / liáng cluster.