HSL(240°, 100%, 50%) to RGB (Blue)
HSL(240°, 100%, 50%) converts to RGB(0, 0, 255), which is pure blue.
How to use this tool
- Enter the hue (0–360°), saturation (0–100%), and lightness (0–100%).
- The tool outputs the equivalent red, green, and blue values (0–255).
- Copy the rgb() string into CSS or read the individual R, G, B numbers.
Pure blue is represented in HSL as (240°, 100%, 50%), converting back to RGB(0, 0, 255).
Frequently asked questions
- How does HSL to RGB conversion work?
- The algorithm converts saturation/lightness to intermediate values, then maps the hue angle to separate R, G, B channels using a piecewise function.
- What is hsl(120, 100%, 50%)?
- That is pure green: rgb(0, 255, 0).