Convert RGB colour values to a HEX colour code for use in CSS and design tools.
Type or paste your colour value into the input field, or use the visual picker. Try the sample buttons for quick examples.
All output fields update instantly as you type. A colour preview swatch also updates in real time.
Click any Copy button to copy that specific value straight to your clipboard — ready to paste into your CSS, design tool or code.
Yes. All colour conversions happen entirely in your browser using JavaScript. No data is ever sent to a server.
Yes. All maths follows the official sRGB colour space formulas defined by the W3C and ICC. Rounding is done to standard precision.
RGB stands for Red, Green, Blue. Each channel is a number from 0 to 255. Combined, they define any colour in the sRGB colour space used by screens and web browsers.
Each R, G, B value must be between 0 and 255. Values outside this range are automatically clamped before conversion.