Convert colors between HEX, RGB, HSL and HSB. Generate shades and color harmonies.
Runs in your browser
The Color Converter instantly converts colours between HEX, RGB, HSL, RGBA, and HSV formats. Whether you are a designer copying a colour from Figma into CSS, a developer translating a brand colour guide into code, or a photographer working with colour profiles, having all formats in one place saves constant recalculation.
HEX is the format most commonly used in CSS and HTML (#3B82F6). RGB (Red, Green, Blue) is the additive colour model used by screens (rgb(59, 130, 246)). HSL (Hue, Saturation, Lightness) is the most intuitive for designers creating colour variations (hsl(217, 91%, 60%)). RGBA and HSLA add an alpha transparency channel.
Enter a colour using any input method the colour picker, a HEX value, or individual RGB/HSL sliders. All other format fields update instantly. Click the Copy button next to any format to copy that value to your clipboard ready for use in code.
The shades panel generates 9 tints and shades of your colour (similar to Tailwind CSS colour palettes), and the harmonies panel shows complementary, analogous, and triadic colour relationships.
Use the Color Converter when you need HEX, RGB, HSL without extra setup.
Example input: Convert HEX #ff0000.
Example result: The equivalent values are RGB 255, 0, 0 and HSL 0, 100%, 50%.
The Color Converter uses browser or server-side parsing rules appropriate to the task. Formatters preserve valid structure while changing whitespace, encoders transform characters into another representation, and validators report whether the input follows the expected syntax.
When a standard exists, such as JSON, URL encoding, HTTP, JWT, YAML, or cron syntax, the tool follows common web-platform behavior as closely as possible.
The Color Converter is designed for quick practical use. Inputs are handled according to the tool type; browser-based tools keep work local, while live lookup tools may need server-side checks.