Free online tools to generate, calculate,
convert, format, encode, and play.
 

Color Name Lookup

Enter a hex color to find the nearest named CSS color, or search by name to get hex, RGB, and HSL values.


Looks up as you type.


Browse All CSS Colors


How It Works

CSS defines 148 named colors that browsers universally recognize. This tool lets you work with them in two ways:

  • Hex lookup: Enter any hex color and the tool finds the closest named CSS color by calculating the Euclidean distance in RGB space. An exact match is highlighted when available.
  • Name search: Type a color name (or partial name) to instantly see its hex, RGB, and HSL values along with a visual swatch.

Distance Formula

The nearest color is determined by minimizing sqrt((R1-R2)² + (G1-G2)² + (B1-B2)²) across all 148 named colors. A distance of 0 means an exact match.


Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.


Related Utils


Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with