Convert between color names, HEX, and RGB
HTML and CSS support 147 named colors (e.g., "red", "dodgerblue", "lightcoral"). These names are convenient, but sometimes you need their HEX or RGB equivalents for design consistency or programming. This tool converts any valid color name to its HEX and RGB values. It also accepts HEX or RGB input and returns the closest named color (if available).
Color conversion is essential for web designers, developers, and anyone working with CSS. This tool also displays a live color preview, so you can see the color immediately.
All processing is local; no data is sent to any server.
Step 1: Enter a color in any recognized format: name (e.g., "tomato"), HEX (e.g., "#FF6347"), or RGB (e.g., "rgb(255,99,71)").
Step 2: Click "Convert". The tool will display the color's HEX, RGB, and the closest named color (if the input was HEX/RGB).
Step 3: A color preview will appear below.
Step 4: Copy the result using the "Copy Result" button.
The tool includes all 147 standard HTML/CSS color names, plus some common variations.
Input: "dodgerblue" → Output: #1E90FF, rgb(30,144,255)
Input: "#FF4500" → Output: OrangeRed (closest), #FF4500, rgb(255,69,0)
Input: "rgb(255, 20, 147)" → Output: DeepPink (closest), #FF1493, rgb(255,20,147)