I don't think so. This was an actual recipe posted on Facebook. Unfortunately I lost the link to the original but if you search for that term you'll find many variations on this idea, most of which look even less appetizing.
But if it makes someone happy, it's all good. Nothing wrong with colorful food until the colorant changes taste. Even then, that's on the person making and eating it.
As with almost everything else posted in this sub, whether or not it’s a crime ultimately up the person eating it. The only real crime is wasting food while others are starving.