How to Convert RGB to HEX
Converting RGB to HEX is simple: each channel (R, G, B) is converted from decimal (0-255) to a two-digit hexadecimal string. For example, R=26, G=115, B=232 converts to #1A73E8 (Google Blue). The formula: hex = '#' + [R, G, B].map(v => v.toString(16).padStart(2, '0')).join(''). Our picker handles this instantly as you move the color wheel or enter RGB values directly, showing the live HEX equivalent alongside CMYK and HSL values.