• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

CSS Colors - 3 digit Compressed Hex Chart?

rhianna

New Member
Hi,

I understand the 6 digit Hex color codes (i.e. ff0000)

and the RGB numerical triplets ( 255, 0, 0)

I don't understand where the compressed color codes come from or how to convert a 6 Hex into a compressed 3. :confused4

Does anyone know of an online chart that will name the colors & give the compressed 3 codes for those colors?

Thanks in advance.
 
I know some CSS, dont take my word for it, but i think its only certain colors that allow you to us only 3 digits and not all colors. I think those 3 digit come built-in in the language.

I think its something like that. Not sure
 
Yojance said:
I know some CSS, dont take my word for it, but i think its only certain colors that allow you to us only 3 digits and not all colors. I think those 3 digit come built-in in the language.

I think its something like that. Not sure
Yup, I think you are right there.

For instance, #FFF would not produce white, it would instead produce a yellow.
While #000 would still produce black.
 
Actually the 3 digit only hex codes are shorthand for the codes that have the numbers repeated in pairs.

Ex.
#FFF = #FFFFFF
#06C = #0066CC

The "safe" color codes are all in the format #0066CC and the like.
A full color code table can be found here
 
Back
Top