Color Name Finder (Nearest CSS Color Name)
Type a hex or RGB color and find the nearest of the 148 CSS color names, or type a name to get its hex code.
Tool inputs stay in your browser · optional AI search sends your query
Good to know: CSS (the language of web page styles) has 148 named colors, such as tomato, teal and rebeccapurple, from CSS Color Module Level 4. Type a hex code (#ff6347), a short hex (#f63), rgb(255, 99, 71) or a color name. The tool finds the closest names using a weighted RGB distance (the “redmean” formula, closer to how eyes see differences than plain RGB distance) and shows how close each is: 0 means an exact match.
How to use it (step by step)
- 1Type a color: hex (#1e90ff), short hex (#19f), rgb(30, 144, 255) or a name (dodgerblue).
- 2Read the nearest CSS color name, its hex code and how close it is, plus the next closest names.
Words to know
- Hex color code
- A color written as # and 6 characters, like #2563EB (blue). Design apps understand it.
- RGB / HSL
- Ways to describe a color: RGB mixes red, green and blue light; HSL uses hue (color), saturation (strength) and lightness.
- CSS
- The code that controls how a web page looks: colors, sizes, spacing and layout.
Sources & methods
References checked November 19, 2026. Read each tool’s scope and assumptions before relying on its result.
Spotted a wrong result or an outdated rule? Report a mistake · How we check our tools · Get new tools by email