Color converter + Plus extras
Convert a hex color into RGB and HSL.
Your result will appear here.
Enter your input, then run the tool.Image mode: recolour a picture
Adjust the hue, saturation and brightness of a photo or graphic, or swap one colour for another, with a live before-and-after preview. Your image is decoded and processed on your device and never uploaded.
Adjust
Replace a colour
Replacing several colours in one pass and batch processing are part of Plus. One colour swap and all adjustments are free.
Pick a colour with the pipette, then click it on the Before image, or type a value. Tolerance sets how close a pixel must be to match; softness fades the edge. Matching pixels are shifted by the colour difference, so shading is kept.
Download
Batch processing several images with the same settings is a Plus feature.
Large images are processed in slices so the page stays responsive. Downloads are limited to 16 megapixels (8,192 px per side); bigger images are scaled down to fit.
How to use the color converter
Enter a hex colour to see its RGB and HSL values together. The three-digit shorthand expands to six digits in the output.
Paste a value such as #0872df, run the tool and copy the result.
- Type a hex colour in the Input box; it starts with #0872df. The # is optional.
- Press Run tool.
- The result shows three lines: uppercase HEX, rgb() and hsl(). Use Copy result, or download them as hth-color-converter.txt.
- To recolour a picture instead, use Image mode below: Choose image, move the Hue, Saturation or Brightness sliders or tick Replace colours, then press Download PNG.
Good to know
- The text converter accepts three or six hex digits, with an optional #.
- Output contains uppercase six-digit HEX, integer RGB channels and rounded HSL values.
- Named colours and alpha-channel hex values are not accepted by the text converter.
- Text conversion runs in your browser.
Examples
- #0872df → #0872DF, rgb(8, 114, 223), hsl(210, 93%, 45%).
- abc → #AABBCC, rgb(170, 187, 204), hsl(210, 25%, 73%).
- ff6600 → #FF6600, rgb(255, 102, 0), hsl(24, 100%, 50%).
If something goes wrong
Enter a 3- or 6-digit hex color.
Check for a space or line break before or after the value; it isn’t trimmed. Eight-digit hex with alpha, 0x prefixes and colour names such as red also give this message.
The recoloured download is smaller than my original.
Image mode downloads are limited to 16 megapixels and 8,192 px per side; larger pictures are scaled down. Files over 25 MB won’t open.
Replace colours changes too much or too little.
Lower Tolerance to match fewer shades or raise it to catch more, and use Softness to fade the edge. Press the pipette, then click the Before image to pick the exact colour.
Questions
Can I enter #abc?
Yes. It expands to #AABBCC before the other values are calculated.
Does it show transparency?
No. The text converter accepts only RGB hex colours without alpha.
Why are HSL values whole numbers?
Hue, saturation and lightness are rounded for display.
Can I swap more than one colour in a picture?
The free version replaces one colour at a time and includes every adjustment. Up to eight colour pairs in one pass, and batch processing, are Plus features.
