RGB to HEX converter

/ Published in: JavaScript
Save to your folder(s)

Converts and returns the HEX equivalent of an RGB value. If it is possible the HEX shorthand will be returned (ie. #abc instead of #aabbcc).

URL: http://sverri.tumblr.com/post/865949154/javascript-rgb-to-hex-converter

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.