HEX RGB HSL Color Converter
Convert a three- or six-digit HEX color into normalized HEX, RGB and rounded HSL.
This tool processes input locally in your browser without a tool API upload. This describes tool processing, not a site-wide logging guarantee. Avoid pasting live secrets.
Supported behavior
- Convert a three- or six-digit HEX color into normalized HEX, RGB and rounded HSL.
- Input supports HEX only, not RGB/HSL text, alpha, named CSS colors or wide-gamut spaces. HSL components round to integers; reverse round trips can differ. The swatch is a preview, not a contrast/accessibility assessment.
How to use the HEX RGB HSL Color Converter
- Enter HEX with optional # or use the color picker; read RGB and HSL output.
- Review the result or error before copying. Shared output panels offer Copy; there is no file upload or download workflow.
- Tool input is processed locally without a tool API request. This does not establish site-wide analytics or logging policy.
Examples
Worked behavior
#f00 becomes #FF0000, rgb(255, 0, 0) and hsl(0, 100%, 50%).
Limits and common mistakes
Input supports HEX only, not RGB/HSL text, alpha, named CSS colors or wide-gamut spaces. HSL components round to integers; reverse round trips can differ. The swatch is a preview, not a contrast/accessibility assessment.
Frequently asked questions
Can I paste rgba() or eight-digit HEX?
No. Convert those values separately and supply opaque three- or six-digit HEX.
Sources & methodology
More developer & data tools
Image Resizer
Resize JPG, PNG and WebP by pixels or percentage. Keep the source ratio or set exact dimensions, then compare JPG, PNG or WebP output.
Open tool →Image Compressor
Re-encode JPG, PNG or WebP at original dimensions with a WebP quality setting. Compare measured file sizes and download the actual browser output.
Open tool →Compress Image to Target KB
Try a JPEG quality and dimension search for a target KB limit. Accepts JPG and PNG; reports missed targets and fills transparency white.
Open tool →Open Graph & Social Preview
Generate and preview Open Graph and social metadata.
Open tool →UUID Generator
Generate one or multiple random UUID version 4 identifiers.
Open tool →XML Formatter & Validator
Validate and pretty-print XML locally in the browser.
Open tool →