Color Name to Hex - Online Official CSS Colors
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
UD5 Toolkit
Complete list of all 148+ named CSS colors with hex codes, RGB values & live preview
No colors found
Try a different search term or clear filters
#FF0000 or RGB values, you can simply write red, blue, or tomato in your CSS and HTML. These named colors are officially recognized by the W3C and are supported across all modern browsers. There are currently 148 named colors in the CSS specification (including rebeccapurple added in CSS Color Level 4).
rebeccapurple (#663399) — a special addition honoring Rebecca Meyer. Additionally, several colors have alternate spellings (e.g., Gray / Grey), bringing the total recognized keywords to over 150. Note that transparent and currentColor are also valid CSS color keywords but don't map to specific hex values.
AliceBlue, aliceblue, ALICEBLUE, or even aLiCeBlUe — they all work the same. However, the conventional and most readable format is PascalCase (e.g., AliceBlue, LightSkyBlue), which is how they're listed in official specifications and our tool above.
tomato is more intuitive than #FF6347. They're ideal for basic colors like white, black, or red. However, hex codes offer far more precision (16.7 million colors vs. 148 named ones), are universally understood by design tools, and are preferred in production code for consistency. Many developers use named colors for quick drafts and replace them with hex/RGB values in final builds.
rebeccapurple was added in 2014 and is now supported everywhere. You can safely use any named color in production websites without compatibility concerns.
Aqua (#00FFFF), Black (#000000), Blue (#0000FF), Fuchsia (#FF00FF), Gray (#808080), Green (#008000), Lime (#00FF00), Maroon (#800000), Navy (#000080), Olive (#808000), Purple (#800080), Red (#FF0000), Silver (#C0C0C0), Teal (#008080), White (#FFFFFF), and Yellow (#FFFF00). These were the only named colors guaranteed to work across all early browsers.
rebeccapurple (#663399) is a heartfelt tribute to Rebecca Meyer, the daughter of prominent CSS developer Eric Meyer. Rebecca passed away from brain cancer in 2014 at age 6, and purple was her favorite color. The CSS community rallied to honor her memory by adding this color to the official CSS Color Module Level 4 specification. It's the first named color added to the web standard since the original X11 colors, and serves as a touching reminder of the human stories behind web standards.
rgba(255, 99, 71, 0.5) for semi-transparent tomato, or modern syntax like rgb(from tomato r g b / 0.5) in CSS Color Level 5 (still gaining browser support). For now, if you need transparency, you'll need to convert the named color to its RGB or hex equivalent and use rgba() or 8-digit hex like #FF634780.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Find the official name of any hex color from the extended color dictionary. Search by name to get the hex code. Handy for CSS and design language.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
Type a word like 'sunset' or 'calm' and generate a color palette inspired by that mood. Simple associative mapping.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
Quickly convert HEX color codes to RGB values and vice versa. See the color preview. Indispensable for web developers and graphic designers.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Upload an image and instantly get a 6‑color palette with the most dominant shades. Click to copy hex codes. Canvas‑based.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
Classic HSV color wheel with sliders. See hex, RGB, and HSL equivalents. Intuitive for artists. No server interaction.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Enter a Kelvin value (1000‑40000) and see the approximate white‑balance color. Photography and lighting reference.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Select a color and see which cocktails match it roughly. Blue for Blue Lagoon, red for Negroni. Fun bar guide.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
Enter a palette of colors and see a grid showing whether each foreground/background pair passes AA or AAA contrast. Must for designers.
Preview how a CMYK value will look on screen (approximate). Compare with its RGB equivalent. Pre‑press check.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Input RGB values and see the HSL equivalent with a color preview. Understand lightness and saturation. Local.
Adjust the color temperature of your image: move slider to make it warmer or cooler. Quick white balance fix. Local canvas.
Browse every Tailwind default color palette side by side. Click any shade to copy the hex or class. For rapid design.