[atari7800] Colors: RGB to Maria formula?

Hi there!

This is probably a silly question, but could there possibly be a formula that'll calculate the closest Maria match for a set of RGB values?

Greetings,
        Manuel

Other related posts: