The name database
Names are sourced from thecolor-name-list/bestof package, which contains over 4,000 carefully curated entries covering the full gamut of sRGB colors. The dataset is licensed under MIT.
Color Palette does not use Pantone names. Pantone color names and numbers are proprietary. All names shown in the app are from the open-source
color-name-list/bestof dataset.How names are found
When you add or edit a color, the app runs a nearest-neighbor search in Oklab perceptual color space:Convert to Oklab
The input hex is converted to Oklab via the pipeline: sRGB → linear RGB → LMS cone responses (using the M1 matrix) → cube root (for perceptual scaling) → Oklab (using the M2 matrix).
Compute distances
Squared Euclidean distance is computed between the input color and every entry in the pre-computed database. The square root is skipped for performance — comparing squared distances preserves the ordering.
Why Oklab
Oklab is a perceptually uniform color space designed so that equal numerical distances correspond to equal perceived differences. In contrast, raw RGB distance often produces mismatches — two colors can be numerically close in RGB but look very different to the human eye, or vice versa. By searching in Oklab, the nearest-neighbor result is the name that a person would most likely associate with the color, not just the closest value in screen coordinates.Oklab conversion pipeline details
Oklab conversion pipeline details
The conversion from hex to Oklab follows the reference implementation by Björn Ottosson:
- sRGB linearization — each channel (0–255) is divided by 255 and inverse-gamma-corrected. Values below 0.04045 use the linear segment
v / 12.92; values above use((v + 0.055) / 1.055) ^ 2.4. - Linear RGB → LMS — a 3×3 matrix (M1) maps linear RGB to approximate cone response values.
- Cube root — each LMS component is cube-rooted for the perceptual non-linearity.
- LMS → Oklab — a second 3×3 matrix (M2) maps the cube-rooted LMS values to the final L, a, b components.
CSS named color annotation
When the nearest CSS named color is within a squared Oklab distance of 0.0004 (roughly equivalent to a linear distance of 0.02 — a very small perceptual difference), a tooltip appears on the color name showing the CSS keyword. This means that if you have a color very close tocornflowerblue or rebeccapurple, a tooltip will identify it. Colors that are perceptually distinct from all 148 CSS named colors show no tooltip.
Display behavior
Color names are displayed in lowercase beneath each palette item. Long names truncate with an ellipsis — hover the name to see the full text in a tooltip. The variations panel also displays the source color’s name in its header, so you always know which color you are exploring variations of.Related
Color editing
Edit a color’s hex value directly — the name updates as soon as you confirm.
Color variations
Explore tints, shades, and tones. The source color name appears in the variations header.
Color formats
All color formats supported for display and export.
Contrast checker
Check WCAG contrast ratios between palette colors.