> to navigation > to content

Scripting Corner

JavaScript:
Color Code Converter

RGB
System
CMY(K)
System
HSL
System
DEC
(CSS)
Red: 0 - 255
Green: 0 - 255
Blue: 0 - 255

CMY
(printers)
Cyan: %
Magenta: %
Yellow: %
HSL
(image processing)
Hue: 0 - 255
Saturation: 0 - 255
Lightness: 0 - 255
HEX
(HTML)
Red: # #00 - #FF
Green: # #00 - #FF
Blue: # #00 - #FF

CMYK
(printers with black)
Cyan: %
Magenta: %
Yellow: %
Black: %