Configure Color
Editing HSL directly recalculates RGB and hex to match.
Preview & Output
Channel Legend
Hue
Position on the color wheel, from 0° (red) to 360° (back to red).
Saturation
Intensity of the color, from 0% (gray) to 100% (fully saturated).
Lightness
How close the color sits to black (0%) or white (100%).
About the RGB to HSL Converter
RGB (Red, Green, Blue) and HSL (Hue, Saturation, Lightness) are two ways of describing the exact same color space. RGB is how screens physically mix light; HSL is a more human-friendly model based on a color wheel, making it easier to lighten, darken, or desaturate a color predictably.
This converter lets you move freely between hex, RGB, and HSL. Edit any representation — drag a slider, type a channel value, paste a hex code, or use the native color picker — and the other formats update instantly.
All conversion math runs locally in plain JavaScript. Nothing about your color values is sent to a server.
How to Use the RGB to HSL Converter
Enter an RGB Color
Type red, green, and blue values (0-255), paste a hex code, or use the native color picker.
Fine-Tune with Sliders
Drag the R, G, and B sliders and watch the HSL, hex, and preview swatch update instantly.
Read the HSL Breakdown
Hue (0-360°), Saturation (0-100%), and Lightness (0-100%) are calculated live, with no rounding surprises.
Copy in Any Format
Grab the CSS-ready hsl(), rgb(), or hex string with a single click.
Common Use Cases
CSS Theme Authoring: Convert brand RGB swatches to HSL so you can adjust lightness and saturation for hover, active, and dark-mode states.
Design System Tokens: Translate designer-supplied RGB values into HSL tokens that are easier to reason about programmatically.
Accessible Palette Tuning: Nudge the lightness channel to hit contrast ratios without shifting the underlying hue.
Data Visualization Scales: Build consistent color ramps by holding hue and saturation constant while sweeping lightness.
Cross-Tool Color Handoff: Bridge design tools that export RGB/hex with CSS or SVG code that expects HSL.
Why Choose Our RGB to HSL Converter
Real-Time, Two-Way Conversion
Edit RGB, hex, or HSL fields directly — every representation stays in sync as you type or drag.
Native Color Picker
Use your browser's built-in color picker or eyedropper to sample any RGB value visually.
Live Preview Swatch
A large color block updates instantly so you can judge the result before copying it out.
Draggable RGB Sliders
Fine-tune each channel with sliders that stay perfectly synced to the numeric inputs.
Random Color Generator
Generate a random RGB value in one click to explore how hue, saturation, and lightness relate.
One-Click Copy
Copy the hsl(), rgb(), or hex string with toast feedback, ready to paste into your CSS.
