🍋 Developer Tools
Color Code Converter
Convert colors between HEX, RGB, and HSL formats
chars
words
sentences
lines
Results
Result
About Color Code Converter
Convert colors between HEX, RGB, and HSL formats instantly. Auto-detects input format and shows all representations with a live color preview.
How It Works
Parses the input color in any supported format (HEX, RGB, HSL), converts to all three representations, and displays a color swatch preview.
Step by Step
- 1 Enter a color in any format: #FF6B35, rgb(255,107,53), or hsl(20,100%,60%)
- 2 Click Convert to see all representations
- 3 View the color preview swatch
Tips
- HEX colors can use 3-digit shorthand (#F60 = #FF6600)
- HSL is often easier to reason about: H is the hue angle (0-360), S is saturation, L is lightness
- RGB values range from 0 to 255 for each channel
Frequently Asked Questions
What color formats are supported?
HEX (#RRGGBB or #RGB), RGB (rgb(r,g,b) or r,g,b), and HSL (hsl(h,s%,l%)).
Does this support alpha/transparency?
Currently no. This tool converts opaque colors only. RGBA/HSLA support is planned.