🎨 Color Converter
Convert colours between HEX, RGB, and HSL and see a live preview — perfect for Android themes, custom ROM accents, app UIs, and launcher icons. Deterministic maths, instant results.
🎨 Convert HEX · RGB · HSL
What is a Color Converter?
A colour converter translates a single colour between the notations different tools expect. Enter a HEX code or RGB channels and it returns the matching HEX, RGB, and HSL values along with a swatch so you can confirm the shade by eye before you drop it into a theme.
It's built for Android tinkering: grab the exact HEX for a colors.xml entry, pick a saturated accent for a custom ROM, or fine-tune a launcher icon. Because the conversion is pure deterministic maths, the same input always produces the same output — no surprises between your design tool and your app.
❓ Frequently Asked Questions
How do HEX, RGB, and HSL relate to each other?
They're three ways of describing the same colour. HEX (like #2e7d32) is a compact six-digit form used in CSS and Android XML. RGB gives the red, green, and blue channels as 0–255 values. HSL describes hue, saturation, and lightness, which is often more intuitive when you want to nudge a colour lighter or more vivid. This tool converts between all three.
Where do I use these colour values on Android?
HEX values go straight into an app's colors.xml, a theme's accent, a launcher icon, or a custom ROM's system palette. RGB and HSL help when you're picking a matching shade or building a palette. Copy whichever format your tool or config file expects.
Does the converter round HSL values?
Yes. Hue is shown 0–360°, and saturation and lightness are shown as whole-number percentages, which matches how most design tools and Android theming apps display them. The maths is deterministic, so the same input always gives the same result.
What is an 8-digit HEX with alpha?
Android often uses #AARRGGBB where the first pair is the alpha (opacity) channel. This converter works with standard 6-digit #RRGGBB colours; to add transparency, prepend an alpha pair to the HEX value in your Android theme.