Color Formats
Color Converter
Convert values between HEX, RGB, and HSL for consistent handoff between design and code.
The Color Converter translates values between HEX, RGB, and HSL while keeping a live preview in sync. It gives you the exact numeric formats designers and developers need for handoff, whether you are working in design tokens, CSS, or documentation.
Live preview
Use this swatch to confirm your converted color.
What this tool does
The Color Converter translates values between HEX, RGB, and HSL while keeping a live preview in sync. It gives you the exact numeric formats designers and developers need for handoff, whether you are working in design tokens, CSS, or documentation. The goal is to remove guesswork so the same color appears consistently across tools and environments.
When to use this tool
Use this converter when you receive a color in one format but need it in another format for production. It is especially helpful when building a palette in Color Palette Generator, validating readability in Contrast Checker, or preparing CSS gradients in Gradient Generator. It is also useful when a design file uses HSL but your codebase expects HEX.
How it works
The tool parses the input you type, normalizes the value to an internal RGB model, and then calculates the equivalent HEX and HSL values. It uses standard conversion formulas and updates all fields in real time. The preview swatch reflects the computed color so you can visually confirm that the conversions align with your intent.
Example use case
A designer shares a primary color as HSL (199, 93%, 60%) because it is easy to adjust hue and saturation. You need a HEX value for CSS variables and a matching RGB value for a chart library. Paste the HSL value, copy the HEX and RGB outputs, and verify the swatch matches the original color in the design file.
Use cases
- Convert HSL values from a design file into HEX for CSS variables.
- Translate RGB values from a chart library into HSL for color tuning.
- Standardize mixed color formats in a shared style guide.
Notes & limitations
This converter focuses on solid colors and does not output alpha channels. Values are rounded to the nearest whole number, which can introduce small differences in edge cases. Color appearance can vary by display and color profile, so confirm in your target environment. For gradients or accessibility checks, pair this tool with the related utilities linked above.