广告
COLOR TOOL

RGB 转 HSL 转换器

即时将 RGB 数值转换为 HSL,并提供实时颜色预览与可复制 CSS。

在浏览器中运行 自由 to use No registration
RGB

RGB 输入

Set each channel from 0 to 255.

128
128
128
RGB rgb(128, 128, 128)
Quick presets
HSL

HSL 输出

Hue is measured in degrees; saturation and lightness are percentages.

色相 0° 0–360°
饱和度 0% 0–100%
明度 50% 0–100%
实时预览

预览ing the selected RGB color.

#808080
HSL hsl(0, 0%, 50%)
OUTPUT

可复制格式

RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HEX#808080
CSS variable--color: #808080;
RGB → HSL

RGB → HSL at a glance

RGB describes the red, green and blue channels. HSL expresses the same color through hue, saturation and lightness.

Private by design

The conversion happens locally in your browser. No RGB values are uploaded for processing.

广告