سؤال

Is there a way to match Hex/RGB colors to the closest PMS (Pantone Matching system) colors?

I'm trying to think of a way to code this, but have no idea where to even get started.

هل كانت مفيدة؟

المحلول

Basically, you'd get the RGB values for the PMS colors, then use one of the several Delta-E formulas to find the differences (and, obviously, choose whichever gave the smallest difference).

نصائح أخرى

There's a ready class with all the values preset that let's you easily convert colors between formats.

Here you can find it: colour

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top