Конвертер цветов из RGB в HSL
Tool guide
Three channel numbers say very little about the shade itself: rgb(255, 0, 0) and rgb(200, 30, 30) clearly belong together, yet the digits never explain how. Enter values into the R, G and B fields, press convert, and the color splits into a hue in degrees plus saturation and lightness percentages. The arithmetic happens locally in your browser and the values are not transmitted anywhere. See also: the reverse HSL to RGB conversion, a compact HEX form of the colour for CSS, build a palette straight from a photo.
Because edits become describable and repeatable. "Ten percent lighter" is a single change to L, whereas in channel space you would juggle three numbers at once and risk drifting to a different part of the color wheel.
Grey, black and white have three equal channels, so there is no hue to report and saturation is zero. The degree is written as 0 by convention, which does not mean red. As soon as the channels differ by even one step, a meaningful hue appears.
Add 180 to the hue and take the remainder modulo 360, leaving saturation and lightness untouched. A triadic scheme uses steps of 120 degrees instead. Convert the resulting values back into channels or a hex code when you are ready to write styles.
Not directly. The standard computes relative luminance with per-channel weights and gamma correction, while L is a simplified figure. Two colors with identical lightness can score differently against white text, so verify with a dedicated contrast calculator.
That form shows up in OpenGL, shaders and some 3D exports. Multiply each number by 255 and round: 0.2 becomes 51 and 0.75 becomes 191. The fields on this page accept whole numbers in the 0 to 255 range only.
No. A script on the open page performs the conversion and makes no network request with your numbers. Keep it open in a spare tab while you work: it needs no sign-in and behaves the same on a laptop and on a phone.
Before: R 255, G 0, B 0
After: H 0deg, S 100%, L 50% - a pure hue with no grey in it
Before: R 52, G 89, B 148
After: H 218deg, S 48%, L 39%
Your rating and feedback help decide what to improve next.