HEX to HSL Converter - Online Color Code to Hue Saturation Lightness
Translate HEX colors to HSL values and adjust lightness and saturation visually. Great for creating color variations in CSS design systems.
UD5 Toolkit
HSL stands for Hue, Saturation, and Lightness. Hue is the color type (0–360° on the color wheel), Saturation is the intensity or purity of the color (0–100%), and Lightness is how bright or dark the color appears (0–100%). HSL is intuitive for designers because it mirrors how humans perceive color.
A HEX color code is a 6-digit hexadecimal representation of an RGB color, prefixed with a #. Each pair of characters represents the Red, Green, and Blue channels respectively, ranging from 00 to FF (0–255 in decimal). For example, #FF5733 means R=255, G=87, B=51.
Converting HSL to HEX involves two steps: First, HSL → RGB using trigonometric or geometric formulas based on the hue angle, saturation, and lightness values. Then, RGB → HEX by converting each decimal channel (0–255) to a two-digit hexadecimal string and concatenating them with a # prefix.
HSL is often more intuitive for designers because you can easily adjust lightness to create tints and shades, modify saturation to make colors more or less vibrant, and shift hue to find complementary or analogous colors — all without mentally decoding hex values. HEX is more compact for coding but harder to manipulate visually.
Hue (H): 0 to 360 degrees — values wrap around (360° = 0° = red). Saturation (S): 0% to 100% — 0% is completely desaturated (gray), 100% is fully saturated. Lightness (L): 0% to 100% — 0% is pure black, 100% is pure white, 50% is the "normal" fully saturated color.
Yes! This tool supports bidirectional conversion. Simply type or paste a HEX color code (like 30ABE8 or #30ABE8) into the HEX input field, and the HSL sliders will automatically update. You can also use the built-in color picker to select any color visually. The tool also accepts 3-digit shorthand HEX codes like #ABC.
While both models use Hue and Saturation, they differ in the third component: HSL uses Lightness (ranging from black → pure color → white), while HSV/HSB uses Value/Brightness (ranging from black → pure color). In HSL, a lightness of 100% always yields white; in HSV, a value of 100% yields the purest form of the color. HSL is generally preferred for UI design; HSV is common in image editing software.
Absolutely! CSS has native support for HSL colors using the hsl() and hsla() functions. For example: background-color: hsl(200, 80%, 55%); — this is fully equivalent to its HEX counterpart #30ABE8. Modern CSS also supports hsl() with an optional alpha channel: hsl(200 80% 55% / 0.8).
Translate HEX colors to HSL values and adjust lightness and saturation visually. Great for creating color variations in CSS design systems.
Input a hex color and adjust its lightness by a percentage. Get tristimulus shades for CSS. Quick and visual.
Enter any hex color and find the nearest Tailwind CSS color class. Also shows the Tailwind palette shade.
Upload a screenshot or image and use the magnifying glass to pick exact colors. Get hex, RGB, and HSL. Simple.
Simulate forced‑colors mode and see how your site looks. Adjust CSS system colors. Make your design accessible.
Convert dates between Hijri and Gregorian using the Umm al‑Qura algorithm. Approximate local moon sighting may vary.
Browse all official LEGO colors with names, years, and hex codes. Sort by hue. Perfect for builders.
Convert any text to upside down (flipped) characters using Unicode mappings. Copy and paste to social media. 100% local, no data sent.
Enter CMYK values and find the closest Pantone Solid Coated color. For print design reference. Client‑side lookup.
Enter a hex color and get its relative luminance per WCAG definition. Understand why this matters for contrast.
Pick any emoji and download it as a high‑resolution PNG image with transparent background. For social media or icons.
Convert hex or RGB to CIELAB L*a*b* values. Understand perceptual lightness and color opponents. Local math.
Convert currencies using a built‑in table of approximate fixed rates. Useful for quick estimates without live data. Local.
Convert Markdown to styled HTML that retains formatting when pasted into Google Docs or Word. Headings, bold, lists. Client‑side.
Convert any image into colored ASCII art using divs with background colors. Creates a stunning text‑based replica. View & copy HTML.
Type or paste Korean Hangul and see the revised romanization. Also works backwards for basic words. Study aid.
Enter a Kelvin value (1000‑40000) and see the approximate white‑balance color. Photography and lighting reference.
Convert a numeric amount into English words, perfect for writing checks or legal documents. Supports USD/GBP styles.
Convert between Gregorian and Hijri (Islamic) dates. Approximate visual reference. Local algorithm.
Convert a Gregorian calendar date to its Julian Day Number and vice versa. Used in astronomy and mainframe computing.
Get the exact RGB inversion (negative) of any color. Useful for dark mode theming and high‑contrast accessibility checks.
Encode short audio clips into Base64 data URIs for direct embedding in HTML5 <audio> tags. No external files needed.
Translate between binary and Gray code (reflected binary code). See the bit changes. Useful for digital logic.
Encode decimal integers into signed magnitude binary representation and decode back. Learn computer arithmetic.
Convert a decimal number to 32-bit single precision IEEE 754 format. See sign, exponent, mantissa bits. Developer tool.
Convert any date into Roman numerals (day‑month‑year) for tattoos or special occasions. Clean and local.
Convert minutes to decimal hours and vice versa. Essential for billing and payroll. Instant conversion with a handy chart.
Mix two or more colors using subtractive (CMYK‑like) blending. See what happens when you combine real paints. Brush effect canvas.
Convert between units of absorbed dose and equivalent dose (Gray, Rad, Rem, Sievert). Educational and reference. Local calculation.
Convert torque units between Newton-meter, foot-pound, inch-pound, and more. Essential for mechanics and engineers. Instant local conversion.