Converting RGB to Hexadecimal 03-10-2014, 10:07 AM
#1

This is an easy mathimatical process to get RGB to convert over to hexadecemical values.

We need to remember that hexadecimal is a base16 numeric couting system. This means that whatever we convert over to hexadecimal is ALWAYS divided by 16. When counting, we use base10. Base10 means that we count from 1 - 9, then start using double digits, then trible, so on and so forth.

When counting in base16, we count from 1 to 9 and then use letters. Using hexadecimal for colours, we ALWAYS only EVER go to 15. I know, it's a weird system, just go with it.

Here's a little chart I made for you guys to go by when converting to hexadecimal, just in case you can't remember how it works. It's fairly easy, I don't really know how you wouldn't know this but it's still there if you need it.

Now that we know everything that's needed, we can start working the math to convert it.

We get our value for R and divide it by 16. If you use calculator for this, you will have a decimal remainder. If you do have a decimal remainder, just multiply the decimal by 16.

We now have to numbers, a remainder that has been multiplied by 16, and the base number without the decimal.

All we do to convert it over is put it together. Use the chart or base16 numeric counting system for this.

Example:

You use the same mathematical process for all values to get your hexadecimal value.

Example:

Drop you comments and shit below, hope this helped your graphics designers and such.

If you would like a pre-made program that does this for you because you're lazy, click [here]

We need to remember that hexadecimal is a base16 numeric couting system. This means that whatever we convert over to hexadecimal is ALWAYS divided by 16. When counting, we use base10. Base10 means that we count from 1 - 9, then start using double digits, then trible, so on and so forth.

When counting in base16, we count from 1 to 9 and then use letters. Using hexadecimal for colours, we ALWAYS only EVER go to 15. I know, it's a weird system, just go with it.

Here's a little chart I made for you guys to go by when converting to hexadecimal, just in case you can't remember how it works. It's fairly easy, I don't really know how you wouldn't know this but it's still there if you need it.

**Spoiler:**

Now that we know everything that's needed, we can start working the math to convert it.

We get our value for R and divide it by 16. If you use calculator for this, you will have a decimal remainder. If you do have a decimal remainder, just multiply the decimal by 16.

We now have to numbers, a remainder that has been multiplied by 16, and the base number without the decimal.

All we do to convert it over is put it together. Use the chart or base16 numeric counting system for this.

Example:

**Spoiler:**

You use the same mathematical process for all values to get your hexadecimal value.

Example:

**Spoiler:**

Drop you comments and shit below, hope this helped your graphics designers and such.

If you would like a pre-made program that does this for you because you're lazy, click [here]