How to use CSS Named Color Reference
- Browse the grouped color swatches, or search a name fragment such as rebecca or a hex color such as #663399.
- Set Rows to show from 1 to 148 and select Find named colors for the result table. A hex query ranks names by the stated RGB distance.
- Select a swatch to copy its hex value, or copy a name/value from the result. If clipboard access is unavailable, use the displayed manual-copy value.
Example: CSS Named Color Reference
List the first 20 alphabetical entries while browsing the full grouped swatch grid.
Options
- Search and swatches
- Search up to 64 characters. Name fragments match keywords; #RGB, #RRGGBB or six bare hex digits request a nearest-color comparison. An empty search shows all 148 swatches grouped by hue; a filtered preview shows up to 24 swatches.
- Rows to show
- This setting controls the generated table, from 1 to 148 rows. It does not change the empty-search swatch grid. The table lists names alphabetically for a name search and by encoded sRGB distance for a hex query.
Supported inputs and limits
- A pinned list of 148 opaque CSS keywords, including spelling aliases.
- Nearest results use Euclidean distance in encoded sRGB rather than a perceptual color-difference model.
- Transparent is not opaque, while currentColor depends on an element’s color; neither is part of this comparison.
- Hue grouping is a browsing aid.
- The preview shows every bundled swatch for an empty search and up to 24 for a filtered search;
More details
Rows to show controls the separate result table.
Clipboard copying depends on browser permission, with a manual-copy message when unavailable.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
A keyword is a fixed color
Named colors are convenient in stylesheets, but their names do not form an evenly spaced palette. Copy the hex value when you want to keep a particular value independent of the chosen keyword.
Questions about CSS Named Color Reference
Why do gray and grey have the same value?
CSS includes spelling aliases. They remain separate names in this reference even when their RGB values match.
Is the nearest name visually identical?
Only an exact hex match is identical. RGB distance is a simple numerical comparison and does not predict perceived similarity.
Can I use currentColor here?
It depends on an element’s computed color, so it is not included in the opaque keyword comparison.