Pick a color using the swatch, or type any hex code, to instantly see its RGB and HSL equivalents. Copy any value with one click. Everything runs in your browser — no color data is ever sent to a server.
This tool converts a color between three common formats: HEX (a 6-digit code like #2E5339 used in CSS and design software), RGB (red, green, and blue intensities from 0–255), and HSL (hue angle, saturation, and lightness). Pick a color with the swatch or type a hex code, and all three values update instantly.
Three ways to represent the same color. HEX is a 6-digit code used in CSS; RGB uses red/green/blue intensities (0–255); HSL uses hue angle, saturation, and lightness percentages.
Type or paste the hex code into the input field. The RGB and HSL equivalents appear instantly.
Yes. Type any 3- or 6-digit hex code (with or without #). All values update instantly.
No. All conversion happens in your browser. Nothing is transmitted.
Yes. Once the page has loaded, all conversion runs locally.
Generates a random hex color and updates all color format values.
Only valid 3- or 6-digit hex codes (0–9, A–F) are accepted. Check for typos or extra characters.
Yes, completely free with no sign-up required and no usage limits.
Everything is calculated locally in your browser — the color you pick is never sent to a server.