RGB to HSL Converter
Enter red, green and blue values to convert the color to HSL.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
To convert RGB to HSL, each channel is first normalized to a 0–1 range; lightness is L = (max + min) ÷ 2, saturation depends on how far the max and min channels are apart relative to L, and hue is derived from which channel (red, green, or blue) is largest and by how much, expressed as an angle from 0° to 360° around the color wheel.
Unlike RGB, where changing a color's brightness means adjusting all three channels together, HSL separates hue, saturation, and lightness into independent values, making it far easier to reason about — for example, lightening a color is just increasing L while keeping hue and saturation fixed. Web and UI designers use HSL (and this converter) in CSS to build consistent color palettes and hover/active-state variants from a base brand color.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)