Convert HEX, RGB and HSL Color Values
Convert an opaque screen colour between supported representations without assuming the utility validates every CSS colour syntax.
Use the interactive tool ↓Start with a supported input form
The converter accepts three- or six-digit hexadecimal values and basic integer RGB-style input. It outputs HEX, RGB and HSL representations. It does not accept every CSS color function, colour name, wide-gamut space or HSL input form.
Color Converter
#2563ebrgb(37, 99, 235)hsl(221, 83%, 53%)Check a simple colour by hand
Enter #ff0000. The RGB output should be rgb(255, 0, 0) and the HSL output should be hsl(0, 100%, 50%). Short HEX #f00 expands to the same opaque red.
For Toolza’s familiar #2563eb, the input represents red 37, green 99 and blue 235 in the ordinary 8-bit RGB representation. Different notation does not create a different colour; it expresses the same channel values in another form.
- Paste a supported HEX or integer RGB value.
- Compare the preview swatch with the expected colour.
- Copy the required representation using its row’s copy control.
- Test the value in the actual browser or design destination.
Know where information is lost
The implementation rounds RGB channels and HSL percentages for display. A round trip through a rounded representation can therefore differ slightly from the original. The parser is permissive for some RGB-like strings; it is not a complete CSS grammar validator.
Alpha is not preserved. Even when an rgba(...)-style input is recognised, the tool uses the RGB channels and does not output the input transparency. Eight-digit HEX and modern colour-space conversions are outside this workflow. Composite transparent colours over their actual background in a suitable design tool when that is your real task.
Separate conversion from accessibility
A preview swatch does not show whether text will have sufficient contrast on a particular background. This utility does not compute a contrast ratio, evaluate font size or certify an accessible palette. Check foreground/background pairs in an appropriate contrast workflow.
Troubleshoot a rejected or surprising colour
Remove surrounding code or a CSS declaration and try the plain value first. If an HSL value is rejected, remember that HSL is an output format here, not a supported input mode. Check copied punctuation and channels rather than changing the entire design palette. Text Diff can help review a small before/after set of design tokens without confusing a conversion with a broader colour-system migration.