The Color API
Type any hex colour and get its name, RGB, HSL and CMYK values, plus a swatch. Handy for designers and developers who have a code from a mockup and want to know what it is called and how to write it in other formats.
The pre-filled example is 24B1E0, a bright sky blue that the service names Cerulean.
What it's useful for
- Find the closest named colour for a hex code from a design file.
- Convert a hex colour to RGB, HSL or CMYK for CSS, print or a design tool.
- Check whether a colour you picked has an exact name or only a near match.
Frequently asked questions
Do I need the # in front of the hex code?
No. Enter the six characters only, for example 24B1E0. The tool looks up the colour without the hash sign.
Why does it say the colour is not an exact match?
Most hex codes don't have an official name. The tool then shows the nearest named colour and how far away it is, so the name is a close guide, not a definition.
Where does the colour data come from?
From The Color API, a free public service. We pass your request through our server and show the result; we don't store the colours you look up.
Can I look up colours from RGB or HSL values instead?
This page takes a hex code. If you only have RGB or HSL, convert it to hex first, then paste it here to see every format side by side.
About this data
- Data comes from a free third-party service (www.thecolorapi.com). We pass your request through our server so your browser never contacts it directly.
- Terms: No key; no terms forbidding commercial use found
- The service can change or go offline without notice, and we can't vouch for the accuracy of what it returns.
- Official documentation