Pick a color, and the tool generates the matching code snippets in hex, RGB, RGBA, and HSL formats with usage examples.
The tool generates hex (#FF5733), RGB (rgb(255,87,51)), RGBA (with alpha transparency), and HSL (hue, saturation, lightness) formats.
Use hex for solid colors (most common). Use RGBA when you need transparency/opacity control. HSL is useful for programmatic color manipulation.
This tool generates code for known colors. Use our Color Picker tool to extract colors from images, then use this tool to get the code in all formats.