Understanding Color Formats: HEX, RGB & HSL
Why screens mix red, green, and blue light, what HEX shorthand really encodes, and when HSL makes your life easier.
Only three countries have not officially adopted the metric system: the United States, Myanmar, and Liberia. Yet even within “metric” countries, imperial units persist in surprising places — British pubs serve pints, Canadians report their weight in pounds, and German pilots measure altitude in feet. How did we end up with two parallel systems, and why has a 225-year-old French invention still not conquered the world?
Before 1795, measurement was chaos. Every French province had its own units. A “ pied” (foot) in Paris was different from a “pied” in Lyon. Merchants were routinely cheated, and scientific collaboration was nearly impossible. The Revolution's leaders saw standardisation as a tool of liberation — equal measures for equal citizens.
The French Academy of Sciences was tasked with defining a universal system grounded in nature, not royal decree. Their approach was radical:
Metric conversions (multiply by 10):
1 km = 1,000 m
1 m = 100 cm
1 cm = 10 mm
Imperial conversions (memorise each):
1 mile = 1,760 yards
1 yard = 3 feet
1 foot = 12 inchesThe United States has come close to going metric multiple times. Thomas Jefferson proposed a decimal measurement system in 1790 — before France even finished theirs. So why didn't it happen?
In 1793, France sent a set of standard metric weights and measures to the US via the scientist Joseph Dombey. His ship was blown off course to the Caribbean, where he was captured by British privateers in Montserrat. Dombey died in captivity, and the metric standards never arrived. By the time a replacement set reached America, the political moment had passed.
Congress passed the Metric Conversion Act declaring metric the “preferred system” of measurement — but made adoption voluntary. Without a mandate, industries that had invested billions in imperial tooling had no incentive to switch. Highway signs stayed in miles. Grocery stores kept selling pounds. The act was effectively dead by 1982, when President Reagan dissolved the US Metric Board.
The real barriers are economic, not intellectual:
On September 23, 1999, NASA's Mars Climate Orbiter approached Mars and vanished. The cause was devastatingly simple: one engineering team (Lockheed Martin) calculated thrust data in pound-force seconds (imperial), while NASA's navigation team expected newton-seconds (metric). The mismatch sent the spacecraft 170 km closer to Mars than intended. It either burned up in the atmosphere or skipped off into space.
The investigation found that a single software module, called SM_FORCES, was outputting imperial values without a unit conversion. A $125 million spacecraft was lost because of a missing multiplication by 4.44822 (the conversion factor from pound-force to newtons).
SM_FORCES had included a single line — value_N = value_lbf * 4.44822 — the orbiter would have successfully entered Mars orbit. NASA subsequently mandated metric units for all future missions.The United Kingdom officially went metric in 1965. And yet, more than 60 years later:
This dual system is sometimes called “woolly metrication” — officially metric, practically hybrid. It works because humans are remarkably good at code-switching between systems when the context makes one feel more natural than the other.
Despite appearances, the US is more metric than Americans realise. Science, medicine, military, and international trade all use metric exclusively. Nutrition labels show grams. Soda comes in litres. Ammunition is measured in millimetres. The pharmaceutical industry would never dose a drug in “grains” (an archaic unit still technically legal).
The pattern is clear: wherever precision, safety, or international coordination matters, metric wins. Imperial survives in domains where tradition, culture, and daily habit outweigh the cost of confusion. The two systems will likely coexist for decades more — not because imperial is better, but because replacing it is expensive and emotionally charged.
The metric system is the product of enlightenment rationalism — a belief that nature itself could provide a universal standard. Imperial units are the product of human history — a king's foot, a farmer's acre, a brewer's barrel. We live with both because we are both rational and traditional, often in the same breath.
Why screens mix red, green, and blue light, what HEX shorthand really encodes, and when HSL makes your life easier.
Lossy vs lossless compression, when transparency matters, and why WebP is replacing both PNG and JPG on the web.
What happens when you drag the quality slider, how DCT transforms photos, and why screenshots compress differently.