Code Beautifier

Color Converter

Convert between HEX, RGB, RGBA, and HSL color formats with channel breakdowns and CSS variable exports. · Updated

text
json
Draft saved locally.

FAQ

What color formats can I convert?

HEX (#fff, #ffffff, #ffffffff with alpha), RGB rgb(255, 255, 255), RGBA, and standard named CSS colors (e.g. indigo, red, blue).

Does it support alpha transparency?

Yes. 8-digit HEX and RGBA formats preserve alpha transparency across conversions.

Can I copy ready-to-use CSS custom property variables?

Yes. The output includes standard `--color-primary`, `--color-rgb`, and `--color-hsl` declarations for CSS design tokens.

How does it calculate HSL values?

It computes Hue (0–360°), Saturation (0–100%), and Lightness (0–100%) from raw RGB channels.