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
Explore, search, and copy all 148 CSS named colors
No colors match your search.
Try a different keyword or clear the filter.
color: tomato; or background: steelblue; instead of using hex codes. They make CSS more readable and are supported by all modern browsers. There are currently 148 named colors defined in the CSS Color Module Level 4 specification.
rebeccapurple (#663399) was her favorite color. Several colors also have duplicate spellings (e.g., gray/grey, darkgray/darkgrey), which contribute to the total count of 148.
Tomato, TOMATO, or tomato — all are valid. However, the convention is to use lowercase for consistency and readability. Most developers prefer lowercase in their stylesheets.
color: coral; is intuitive). However, hex, RGB, and HSL offer far more precision — 16.7 million colors compared to just 148 named ones. Named colors are great for quick prototyping, learning CSS, or when you need a standard color like white, black, or tomato. For production projects requiring exact brand colors, hex or custom properties (CSS variables) are recommended.
white, black, red, blue, green, gray, orange, tomato, steelblue, coral, gold, teal, and navy. Colors like transparent and currentColor are also keywords but are not part of the 148 named colors — they serve special purposes in CSS.
color-mix() or combine them with CSS custom properties and rgb() conversion. For alpha transparency, you'd typically convert the named color to its RGB equivalent and use rgba() — for example, rgba(255, 99, 71, 0.5) for semi-transparent tomato. This tool helps you find the exact RGB values for any named color.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
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.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Browse every Tailwind default color palette side by side. Click any shade to copy the hex or class. For rapid design.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
Classic HSV color wheel with sliders. See hex, RGB, and HSL equivalents. Intuitive for artists. No server interaction.
Select a color and see which cocktails match it roughly. Blue for Blue Lagoon, red for Negroni. Fun bar guide.
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.
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.
Style an `<input type='range'>` with custom track and thumb. Cross‑browser CSS. Preview and copy the code.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
Upload an image and instantly get a 6‑color palette with the most dominant shades. Click to copy hex codes. Canvas‑based.
Adjust the color temperature of your image: move slider to make it warmer or cooler. Quick white balance fix. Local canvas.