pxpx
العودة إلى منصة العمل

Color Models: RGB, CMYK and HSL

Screens emit light (RGB), printers subtract it (CMYK), and designers think in hue/saturation/lightness (HSL). Drag the sliders to see all four formats update live.

HEX#7c8cf8
RGBrgb(124, 140, 248)
HSLhsl(232, 90%, 73%)
CMYK50% 44% 0% 3%

RGB 用于屏幕发光,CMYK 用于印刷减色,HSL 更符合人类对色相/饱和度/明度的直觉。

RGB: additive color

RGB mixes red, green and blue light; 255,255,255 is white and 0,0,0 is black. Every screen pixel is three subpixels of these colors, which is why HEX is just three bytes.

CMYK: subtractive printing

Printers layer cyan, magenta, yellow and black ink; each absorbs part of the spectrum. Converting RGB to CMYK is why bright neon screens often print duller — some RGB colors are outside the CMYK gamut.

HSL: human-friendly

HSL separates hue (0–360°), saturation and lightness, making it trivial to create shades, tints and palettes. Our Chinese color pages list HEX, RGB, HSL and CMYK together.

Related pages