On-device AI — professional-grade, fully private.

HSL to RGB Converter

HSL to RGB for code — exact 8-bit values, nothing uploaded.

  • Runs on your device
  • Reads deg, turn, grad and rad
  • Also OKLCH, LAB and CMYK

Drop a stylesheet or token file

CSS, SCSS, SASS, LESS, JSON, SVG or TXT — up to 10.0 MB

#FF4D4D

Nearest colour name: tomato (Same family, distance 6.4)

HSLhsl(0 100% 65.1%)
RGBrgb(255 77 77)
  • HEX#FF4D4D
  • RGBrgb(255 77 77)
  • HSLhsl(0 100% 65.1%)
  • HWBhwb(0 30.2% 0%)
  • HSVhsv(0 69.8% 100%)Not CSS
  • CMYKcmyk(0% 69.8% 69.8% 0%)Not CSS
  • LABlab(59.906 67.771 41.299)
  • LCHlch(59.906 79.363 31.36)
  • OKLABoklab(0.673 0.19441 0.09082)
  • OKLCHoklch(0.673 0.21457 25.04)
  • Display P3color(display-p3 0.9239 0.3574 0.3319)
  • XYZ D65color(xyz-d65 0.45232 0.27107 0.09872)

Contrast

On white3.27:1
Aa
  • AA normalFail
  • AA largePass
  • AAA normalFail
  • AAA largeFail
On black6.42:1
Aa
  • AA normalPass
  • AA largePass
  • AAA normalFail
  • AAA largePass
On your colour3.27:1
  • AA normalFail
  • AA largePass
  • AAA normalFail
  • AAA largeFail

Nearest passing shade — #E22D35 clears 4.51:1 against your comparison colour.

Colour vision

How this colour appears to people with each kind of colour-vision deficiency.

  • Typical vision
  • Protanopia
  • Deuteranopia
  • Tritanopia
  • No colour vision
What are you converting?
Colour value

Any CSS colour syntax, plus cmyk() and hsv().

Edit channels in

Values you type here stay put, even when the colour has no hue to show them on.

Compare against
Export
Export as
Recent colours
Colours you convert appear here.

How to convert HSL to RGB

  1. Enter HSL values

    Set Hue (0–360°), Saturation (0–100%), and Lightness (0–100%).

  2. View RGB result

    Red, Green, and Blue (0–255 each) are calculated and displayed.

  3. Copy or use

    Copy the RGB values for CSS, design software, or code.

Why Convert HSL to RGB?

Converting HSL to RGB enables web development compatibility, provides precise color control, facilitates design work, and ensures accurate color representation in digital projects.

Benefits of RGB Format

  • Web Development: Use RGB values in CSS and web development
  • Precise Control: Access individual red, green, and blue components
  • Design Tools: Compatible with design software and applications
  • Color Manipulation: Easier to manipulate individual color channels
  • Universal Support: Supported by all digital platforms and tools

HSL vs RGB: Understanding the Difference

Understanding the differences between HSL and RGB helps you choose the right format for your needs.

HSL Format Characteristics

  • Hue, Saturation, Lightness color model
  • Intuitive color representation
  • Easy to adjust brightness and saturation
  • Commonly used in design tools
  • More intuitive for color selection

RGB Format Characteristics

  • Red, Green, Blue component values
  • Each component ranges from 0 to 255
  • More precise color control
  • Standard format for digital design
  • Compatible with all design tools

Hue wraps, and grey has none

Hue is an angle, and angles behave differently from the other two channels in ways that produce surprising results if you assume they are ordinary numbers.

  • 0 and 360 are the same place — So is 720, and so is -60, which is 300. Any hue you enter is wrapped into a single turn, which is why a value far outside 0-360 still produces a sensible colour.
  • Four units are accepted — 120, 120deg, 0.333turn, 133.33grad and 2.094rad all mean the same hue. Design tools and CSS both use several of these, and pasting the wrong one is a common mistake this page absorbs.
  • At 0% saturation the hue does nothing — Every hue produces the same grey. The hue is not lost here — it stays in the field so raising saturation takes you where you meant to go.
  • The result is rounded to 8 bits — RGB channels are whole numbers from 0 to 255, so two very close HSL values can produce the same RGB triple. That is a property of the target, not of the conversion.

When to Convert HSL to RGB

Convert HSL to RGB when you need precise color control, design tool compatibility, or color manipulation in digital projects.

Ideal Use Cases

  • Web Development: Use RGB values in CSS and JavaScript
  • Design Software: Convert for use in design applications
  • Color Manipulation: Adjust individual color channels
  • Digital Projects: Ensure accurate color representation
  • Programming: Use RGB values in code and scripts

HSL to RGB Conversion Facts

Understanding these facts helps you make informed conversion decisions.

Key Statistics

  • HSL uses hue (0-360), saturation (0-100%), and lightness (0-100%)
  • RGB uses red, green, and blue values (0-255 each)
  • Conversion maintains color accuracy
  • HSL is more intuitive for color selection
  • RGB is more precise for color manipulation

Best Practices

Follow these guidelines for optimal HSL to RGB conversion results.

Quality Considerations

  • Verify HSL values before conversion
  • Use valid HSL ranges (H: 0-360, S: 0-100%, L: 0-100%)
  • Check RGB values for accuracy
  • Test colors in your target application
  • Consider color space and gamut limitations

When Not to Convert

  • Don't convert if HSL format works for your use case
  • Keep HSL for design tools that support it
  • Avoid conversion if format compatibility isn't needed
  • Don't convert for applications that support HSL directly

Limitations and compatibility

Conversion runs on your device; requires JavaScript and a modern browser.

Powered by optimised image processing algorithms.

The other colour converters

Frequently asked questions

How does the HSL to RGB converter work?

Enter a hue from 0 to 360 degrees along with saturation and lightness percentages, and the tool applies the standard HSL-to-RGB formula to work out each channel. The red, green, and blue values from 0 to 255 and a live color preview update instantly as you adjust the inputs.

What are the valid HSL value ranges?

Hue is an angle on the color wheel from 0 to 360 degrees, where 0 is red, 120 is green, and 240 is blue. Saturation and lightness are both percentages from 0 to 100, with saturation controlling color intensity and lightness moving from black through the pure hue to white.

Why convert HSL to RGB?

HSL is intuitive for choosing and tweaking colors because you adjust hue, saturation, and lightness separately, but screens and many APIs expect RGB. Converting lets you design in HSL, then export production-ready RGB values for CSS, canvas, and other RGB-based workflows.

Is HSL to RGB conversion accurate?

Yes. The conversion uses the mathematically defined HSL-to-RGB standard, so the same color is represented faithfully in both formats. Channel values are rounded to the nearest whole number from 0 to 255, which is the exact precision screens and CSS use to display color.

Is the tool free, and can I use the RGB values in CSS?

Yes. The converter is free (up to 200 colors per run on the free plan; Pro lifts the cap) and runs in any modern browser on desktop and mobile, even offline once loaded. Copy the RGB values with one click and paste them into an rgb() declaration in CSS, or into design software and code.

4.8out of 5

from 298 ratings

Rate this tool

Tap a star — it takes a second