RGB
RGB describes a color by its red, green, and blue channels — each on a 0–255 scale (8 bits per channel). It is what computer monitors and most digital cameras emit, and what every other web color format ultimately maps to.
rgb(255, 107, 53) = hsl(16, 100%, 60%)
Convert RGB color values to HSL color values exactly, via the canonical 8-bit sRGB representation. Every result you see is the same number the W3C CSS spec would produce — no proprietary adjustments, no perceptual fudging. Try the live converter below, or scan the reference table for twenty-five named colors and their RGB ↔ HSL pairs.
rgb(R, G, B) or just R, G, B with each value 0–255
hsl(H, S%, L%) with hue 0–360, saturation and lightness 0–100
Enter the RGB color above. Convertitive accepts rgb(r, g, b) or just r, g, b with each value 0–255.
The result appears the moment your input parses. For example, rgb(255, 107, 53) (Convertitive's coral accent) becomes hsl(16, 100%, 60%).
Click the copy button to grab the result. The preview swatch lives-updates so you can sanity-check the conversion at a glance.
Twenty-five well-known colors with their RGB and HSLrepresentations side by side. The swatches are rendered directly from the computed RGB, so what you see is exactly what you will ship.
| Name | RGB | HSL | |
|---|---|---|---|
| Black | rgb(0, 0, 0) | hsl(0, 0%, 0%) | |
| White | rgb(255, 255, 255) | hsl(0, 0%, 100%) | |
| Red | rgb(255, 0, 0) | hsl(0, 100%, 50%) | |
| Lime | rgb(0, 255, 0) | hsl(120, 100%, 50%) | |
| Blue | rgb(0, 0, 255) | hsl(240, 100%, 50%) | |
| Yellow | rgb(255, 255, 0) | hsl(60, 100%, 50%) | |
| Cyan | rgb(0, 255, 255) | hsl(180, 100%, 50%) | |
| Magenta | rgb(255, 0, 255) | hsl(300, 100%, 50%) | |
| Silver | rgb(192, 192, 192) | hsl(0, 0%, 75%) | |
| Gray | rgb(128, 128, 128) | hsl(0, 0%, 50%) | |
| Maroon | rgb(128, 0, 0) | hsl(0, 100%, 25%) | |
| Olive | rgb(128, 128, 0) | hsl(60, 100%, 25%) | |
| Green | rgb(0, 128, 0) | hsl(120, 100%, 25%) | |
| Teal | rgb(0, 128, 128) | hsl(180, 100%, 25%) | |
| Navy | rgb(0, 0, 128) | hsl(240, 100%, 25%) | |
| Purple | rgb(128, 0, 128) | hsl(300, 100%, 25%) | |
| Orange | rgb(255, 165, 0) | hsl(39, 100%, 50%) | |
| Pink | rgb(255, 192, 203) | hsl(350, 100%, 88%) | |
| Gold | rgb(255, 215, 0) | hsl(51, 100%, 50%) | |
| Tomato | rgb(255, 99, 71) | hsl(9, 100%, 64%) | |
| Coral | rgb(255, 127, 80) | hsl(16, 100%, 66%) | |
| Salmon | rgb(250, 128, 114) | hsl(6, 93%, 71%) | |
| Indigo | rgb(75, 0, 130) | hsl(275, 100%, 25%) | |
| Chocolate | rgb(210, 105, 30) | hsl(25, 75%, 47%) | |
| Crimson | rgb(220, 20, 60) | hsl(348, 83%, 47%) |
RGB describes a color by its red, green, and blue channels — each on a 0–255 scale (8 bits per channel). It is what computer monitors and most digital cameras emit, and what every other web color format ultimately maps to.
HSL describes a color by hue (0–360°), saturation (0–100%), and lightness (0–100%). It is the format CSS recommends for human-readable palettes because nudging the hue keeps the same lightness, unlike RGB where every channel matters.