Hacker News new | past | comments | ask | show | jobs | submit login

A HTML color hex code does not use all available bits in a byte but has a strict format. It's of the form #abc, where # is fixed and abc are hex digits (0-9 A-F), one for R, G, and B. Thus, each channel has 4 bits of precision.

PS: ASCII is a 7-bit encoding. "8 bits minimum" sounds like you are thinking in UTF-8.






Ah thanks, and yes I was.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: