UTILITIES WORKSPACE
Color Converter
Convert a defined sRGB HEX, RGB and HSL subset.
Input is processed on this site only when you run the tool. The application does not save inputs or results.
input.txt
Result result.json
A little clarity goes here.
Run the tool to see your result.
Result preview
UTF-8 text, at most 256 bytes per input. Tab leaves the editor. Plain text disables syntax colors. Browser textareas may normalize line endings to LF.
{"convert":{"inputMode":"text","options":[],"inputLabels":[],"inputLimits":[]}}{"convert":{"input":"#6559e8","options":[]}}A QUICK WALKTHROUGH
A familiar workflow,
with room to focus.
Enter supported HEX, comma-separated RGB(A) or HSL(A).
Convert to a bounded sRGB representation.
Read rounded HEX, RGB and HSL numbers; alpha is labeled explicitly.
When to use Color Converter
Translate a supported sRGB HEX, RGB(A) or HSL(A) value while matching a developer-interface palette.
Read the result
Review rounding and alpha explicitly. HEX quantizes channels to bytes; these numbers do not describe a wide-gamut profile, color-management result or contrast/accessibility score.
SEE IT IN PRACTICE
Worked examples
Sample input. A result you can inspect.
Convert example
Input
#6559e8
Expected result
{"hex":"#6559E8","rgb":{"r":101,"g":89,"b":232,"alpha":1},"hsl":{"h":245.034965,"s":75.661376,"l":62.941176,"alpha":1}}{"kind":"color","title":"Color values","hex":"#6559E8","fields":[{"label":"HEX","value":"#6559E8"},{"label":"RGB","value":"rgba(101, 89, 232, 1)"},{"label":"HSL","value":"hsla(245.034965, 75.661376%, 62.941176%, 1)"}],"note":"RGB values include alpha last; HSL shows hue, saturation %, lightness %, alpha.","schema":1}Formats, limits and common errors
Use supported syntax and ranges; unsupported values are rejected rather than clamped.
- HEX has 3/4/6/8 digits. RGB channels 0–255, alpha 0–1, hue 0–360 and saturation/lightness percentages 0–100. Fixed-point decimals only.
- No named colors, percentage RGB, modern space/slash syntax, scientific notation, wide-gamut profiles or color management. Surrounding ASCII whitespace is ignored.
- RGB rounds to nearest byte. HEX includes alpha when supplied and quantizes it to a byte; numeric alpha and HSL values round to six decimals. HSL derives from the rounded RGB bytes, so round trips may differ.
- Input: 256 UTF-8 bytes per text field. Output: at most 524,288 UTF-8 bytes; serialized responses have a separate 1 MiB ceiling. Size/work failures return no partial result.