About Color Picker & Converter
Designers and developers describe colour in several ways. HEX such as #1cb098 is compact and common in CSS. RGB gives red, green and blue values from 0 to 255. HSL gives hue in degrees plus saturation and lightness in percent, which is easier for making a colour lighter, darker or more muted.
Use the colour picker or type a HEX code. The tool returns the HEX, RGB and HSL forms together, so you can paste whichever your code needs. Three-digit shorthand such as #fa0 is expanded automatically.
How to use Color Picker & Converter
- Click the colour swatch to pick a colour, or type a HEX code in the input box.
- Click Run Tool if the result does not update automatically.
- Copy the HEX, RGB or HSL value into your CSS.
Example
Input
#1cb098
Output
HEX #1CB098 RGB rgb(28, 176, 152) HSL hsl(170, 73%, 40%)
Common uses
- Converting a brand colour into the format your CSS framework expects.
- Finding an hsl() value to create lighter and darker shades.
- Checking the RGB values behind a HEX code from a design file.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
Does it support transparency?
Not here. Eight-digit HEX with alpha is not supported. Add transparency in CSS with rgba() or hsla().
How do I make a lighter shade?
Copy the hsl() value and increase the lightness percentage. Keep hue and saturation the same.
Is the picker the same everywhere?
The colour picker window is provided by your browser and operating system, so its look differs, but the colour code is always the same.