RGB to HSL Converter
Convert RGB (Red, Green, Blue) color values to HSL format with color preview
How to use this converter:
🎨 Convert RGB to HSL
Use case: Convert RGB color values to HSL format for easier color manipulation.
Example: RGB(0, 255, 0) → HSL(120°, 100%, 50%) [Green]
🔍 Color Preview
Use case: See a visual preview of the color to verify the conversion is correct.
⚡ Quick Colors
Use case: Use preset colors for quick testing or common color conversions.
Input RGB Color
Enter RGB values: R, G, B (0-255)
HSL Result
Converted HSL color values
1. Normalize RGB to 0-1
2. Find max and min values
3. Calculate Lightness: L = (max + min) / 2
4. Calculate Saturation and Hue
5. Convert to standard ranges