Color Picker & Gradient
Pick colours, convert between formats and build CSS gradients.
How to use Color Picker & Gradient
- 1Pick a colour or type a HEX code.
- 2Copy the colour in the format you need, or explore shades and harmonies.
- 3Open the Gradient tab to build a gradient and copy the CSS.
About this tool
Designers and developers use different colour formats, so a converter saves a lot of time. This tool shows the same colour as HEX, RGB, HSL, HSV and CMYK and lets you copy any of them. It also shows ten shades, matching colours such as complementary and triadic, and the contrast ratio against white and black text so you can check readability.
The gradient generator creates linear, radial and conic gradients with up to eight colour stops, plus presets and a random button. The CSS code is ready to paste into your stylesheet. Everything runs in your browser, and on browsers that support it you can even pick a colour from anywhere on your screen.
Frequently asked questions
What is the difference between HEX and RGB?
They describe the same colour. HEX writes it in base 16, for example #2563EB, and RGB writes the red, green and blue amounts from 0 to 255.
What contrast ratio is good for text?
WCAG asks for at least 4.5 to 1 for normal text and 3 to 1 for large text.
How do I use the gradient CSS?
Copy the code and paste it into the CSS of any element, for example in a background rule.