Calculator
What the HEX to RGB Converter does
HEX to RGB Converter: converts RGB, HEX and HSL from Pick a colour. Formula: Each colour channel is one byte: #RRGGBB, where RR, GG and BB are 00-FF (0 to 255 decimal).
Supply Pick a colour and you get RGB, HEX and HSL back. The result recalculates on every keystroke without a button press or a page reload.
It is mostly used by designers matching a brand colour. A value copied by eye is a value that will be slightly wrong.
Everything happens inside this page. Nothing you type is sent to a server, and there is nothing for us to store.
The rest of this page documents each field, the method, and a worked example built from the values the HEX to RGB converter loads by default.
What do the HEX to RGB Converter fields mean?
The HEX to RGB Converter uses 1 input. The defaults are there to be replaced. They exist so the tool is never showing an empty result.
| Field | What to enter | Default |
|---|---|---|
| Pick a colour | optional | #2563eb |
How does the HEX to RGB Converter work?
Conversion is exact in both directions. Hex is just base-16 notation for the same three numbers.
Range checks come first, so the formula only ever sees values it can handle.
What a typical run looks like
You provide: Pick a colour
What happens: the file is read into memory by your browser, processed locally, and offered back as a download. It is never uploaded.
You get back: the result as a file you can save, with a one-line summary beside it.
Nothing queues behind a server, so the wait is your device working, and the size limit is set by memory rather than by an upload cap.
Read next: Colour Contrast and WCAG: The Ratio, the Thresholds, What They Miss
How to use it
- Put Pick a colour.
- You will see the result move while you are still editing: that is expected.
- The results panel then shows RGB, HEX, HSL, CMYK and HSV.
- Both Copy Link and Print capture the current state, so pick whichever suits how you file things.
What this tool does not do
- Conversions between colour spaces with different gamuts are approximate at the edges.
- Colours render differently across displays; the values are exact but the appearance is not guaranteed.
- Assumptions built into the method are stated above, but they are still assumptions.
Frequently asked questions
The form asks for Pick a colour. A starting value is in place for each, letting you treat it as a what-if tool rather than a data-entry form.
No record is kept. We never receive what you type, so there is nothing on our side to retain.
It costs nothing, and there is no limit on repeat use.
Full double precision is used throughout; only the displayed figure is shortened.