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.
Related tools
CSS Beautifier
Format, organize, or minify CSS stylesheets with consistent indentation, selector spacing, and clean rule separation.
Diff Checker
Compare two text or code snippets side-by-side to highlight added, removed, and modified lines instantly.
HTML Formatter
Clean up unformatted, messy HTML markup into well-indented, readable code with customizable line wrapping.
Base64 Encode & Decode
Encode plain text to Base64 or decode Base64 strings to UTF-8 text with URL-safe encoding and automatic JSON formatting.