rgb to hsl function added, invoke it for both rgb/hex inputs