<?xml version="1.0" encoding="utf-8"?>

HEX

HEX

HEX triplet is another format for describing HTML colors. Like RGB, HEX triplet defines colors by the amount of red, green, and blue. However, instead of decimal notation (from 0 to 255), it uses a three-byte hexadecimal number where each byte is a value in the range 00 to FF.[3] The first byte corresponds to red, the second byte to green, and the third one to blue.

HEX codes are more compact and improve the load time of a web page slightly. Plus, in contrast to RGB, they're easier to copy and share. In code, you should write it like this: style="color:#ff6347;".

Improve your UX & Product skills with interactive courses that actually work