# Is there any math formula to identify if a CMYK color is rich black?

It not need to be so precise, even because it can change depending on color profile, but I would like to know if there is some formula/algorithm that receive the percentage of C, M, Y and K, then return true or false if it is rich black color.

for example `C=70 M=60 Y=40 K=80 TRUE` and `C=10 M=80 Y=100 K=85 FALSE`

I need it to create an Illustrator script to replace the color of texts that is almost black (rich black) to only K.

• Printers often use 240 as a cutoff point for registration black (i.e., if all four values add up to >240, it’s registration black) – is that what you mean? ‘Rich black’ is quite a vague term, and most uses of what I would call rich black involve K100. Commented Dec 22, 2020 at 9:01
• If K = 100 AND C+M+Y+K>100 AND C+M+Y+K<241 then True. Both your examples would be false. Commented Dec 22, 2020 at 13:01
• @JanusBahsJacquet. A rich black doesn't have to have K=100%. An automatic conversion from RGB black to CMYK would give the darkest possible black within that CMYK profile and could be said to be "rich black". It seldom has 100% black. Commented Dec 22, 2020 at 14:12
• Hello @JanusBahsJacquet, 'rich black' I mean any color that seems black but is not only composite by K. I was wondering if there is some formula that recognize it because this > 240 sometimes returns a false positive Commented Dec 24, 2020 at 8:29
• @AlanAlvesdeOliveira I don't think there's a formula on the device CMYK values. Simply because different printers produce different colors for same CMYK values because their inks/paper differs. So definitely saying something is rich black form CMYK values alone is very very sketchy to begin with. What you would do is convert the cmyk values to LAB with a profile aware conversion. Then you can say something. Commented Dec 24, 2020 at 9:18