Skip to content
AgileLogics

HEX to Pantone

Finds the closest PANTONE coated reference color (Solid Coated, plus two Metallics Coated) to the given HEX code, using the CIEDE2000 perceptual color difference. An approximate nearest-match lookup against a small reference set, not an exact or certified Pantone conversion.

How it works

Enter a HEX color code (with or without the leading #) and click Convert.

How do I find the Pantone color closest to a HEX code?

Enter the HEX code (for example #e31837) and the tool converts it to red, green and blue values, measures how different it looks from each of 38 PANTONE coated reference colors, and returns the closest one. Here the output is PANTONE 1785 C (#E4002B, nearest match), with the table's HEX for that ink in brackets.

PANTONE is a trademark of Pantone LLC; this site is independent of it. The reference HEX values are commonly published screen approximations of physical inks, and the table covers only a sliver of Pantone's catalog, so the suggestion is a lead to check in a printed guide.

The usual situation: a web color that now needs ink

Most people arrive here with a color that was born on screen. A startup picks #1DB954 in a design tool, ships a website, and a year later needs a printed banner or a screen-printed T-shirt where the vendor wants a Pantone number. The HEX tells you what the color looks like on a monitor. A spot ink is a physical mixture whose appearance depends on paper, coating and light, so the two can only ever be matched approximately.

For #1DB954 the tool returns PANTONE 355 C (#00A550, nearest match). That's a reasonable shortlist entry, though 355 C in the table is darker and less yellow than the input.

How the nearest match is chosen

  1. The HEX is parsed into RGB. Three-digit shorthand is expanded by doubling each digit (abc becomes aabbcc), as CSS does.
  2. Your color and every table entry are converted to CIELAB, using the sRGB standard's D65 white point. The CSS Color Module Level 4 spec describes Lab as "intended to be perceptually uniform": equal steps in it look roughly equally different.
  3. Each pair is scored with CIEDE2000 (ΔE00), the CIE's color-difference formula, which corrects Lab's remaining unevenness in blues, grays and saturated colors. The implementation reproduces the published test data from Sharma, Wu and Dalal (2005).
  4. The smallest difference wins. Ties go to whichever entry appears first in the table.

Only the winner is displayed. You get no score, so a near-perfect match and a poor one look the same in the output. As a rough guide, a ΔE00 under 2 is hard to see side by side, and above 10 the colors are clearly different.

Reading the result

A perceptual measure fixes the worst failures of plain RGB distance, which used to pair strong colors with grays because a big gap on one channel outweighed smaller gaps spread across three. It can't add inks the table doesn't have, though. Hot pink shows both sides:

Candidate Table HEX ΔE00 from #ff69b4
PANTONE Rhodamine Red C #E10098 14.9
PANTONE 213 C #E31C79 15.0
PANTONE Cool Gray 5 C #B1B3B3 19.4

Both pinks beat the gray, but both are about 15 away, because the table holds no light pinks, and they are practically tied. When the top result is that far off or that close to a runner-up, compare the two or three entries in the same hue family yourself with the Pantone to HEX lookup.

#e31837 is the friendlier case: 1785 C scores 2.4, with 1795 C (3.5) and Red 032 C (4.5) close behind. Those inks are clearly different on paper, so check all three in a physical guide.

Accepted input

Input Read as
#1e90ff or 1e90ff rgb(30, 144, 255), matched to PANTONE Process Blue C
#FFF rgb(255, 255, 255), matched to PANTONE White
#c8102e (spaces around it) rgb(200, 16, 46), an exact table hit: PANTONE 186 C
#ff000080 error
red, rgb(255,0,0) error

The error message is "Enter a valid 3- or 6-digit HEX color, e.g. #1e90ff." It appears for 4- and 8-digit alpha codes, color names, stray characters such as g, or more than one #. If your color is in rgb() form, use the RGB to Pantone matcher instead, or turn it into a HEX code first with the RGB to HEX converter.

What it won't tell you

The tool doesn't return uncoated (U) or pastel library names, CMYK builds, or a list of alternatives. Two entries in the table, PANTONE 871 C and 877 C, are listed by Pantone in its Metallics Coated library (877 C on pantone.com), not Solid Coated. A flat HEX can't represent a metallic sheen, so when one of them wins the output adds a label, as in PANTONE 877 C (#8A8D8F, nearest match, Metallics Coated) for #8A8D8F. If you only need a color for screen use, skip Pantone entirely and pick it with the color picker.

Last updated

Frequently asked questions

How accurate is a HEX to Pantone match?
Treat it as a rough pointer. The tool compares your color with 38 published screen approximations of Pantone inks and returns the one that looks closest, using the CIEDE2000 color difference. Pantone itself says on-screen colors are simulations and should be checked against its printed guides before you use them.
Why did a pink come back as Rhodamine Red C rather than 213 C?
For #ff69b4 the two are almost tied: CIEDE2000 scores Rhodamine Red C at 14.9 and 213 C at 15.0, and both are much stronger than the input because the table has no light pinks. When a result is a near tie like this, look at both inks in a printed guide.
Can I enter 8-digit HEX with transparency?
No. Only 3- and 6-digit codes are accepted, with or without the #. Codes like #ff000080 show an error; remove the last two digits first.
Can I get the Pantone uncoated (U) match?
No. Every entry in the table is a coated (C) reference, so the tool can only suggest coated names.
Does the tool send my color anywhere?
No. The lookup is a small JavaScript table bundled with the page, and nothing is sent to a server.