The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Difference between rgb and hex

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #34955

    I’m very curios if is a difference between this two methods, I didn’t find some good answers about this difference…
    This two methods are very vague for me technically.
    Thanks !


    Hex: Uses a mix of 6 numbers and characters
    RGB: Uses 3 sets of 3 numbers which have a range of 0 – 255

    Between the 2 the only main different is the syntax in which you use to generate the color, depending if your already using a pre-existing system that uses only one of the two it’s best to keep going with it otherwise it’s really up to you which one you use.

    Tip: Personally i prefer hex but there are times with a need an alpha channel color so instead i would use RGBA (Red, Green, Blue and Alpha) which is the same as RGB but allows for a 0 – 1 alpha level as the forth argument. Browser compatibility is limited to IE9+ but all modern browsers support it with ease.


    Here is a link to a post I wrote about actually using HSLa:

    If you are thinking about using RGBa then I would definitely read it to get a bit more information.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.