Color Validator Server-Side Code
Written by Peter O. http://peteroupc.github.io/
Functions for server-side validation of CSS colors, in several popular server languages. Currently available for PHP, Python, Ruby, C#, and Java. In the public domain.
Documentation
See the Java API documentation.
See the C# (.NET) API documentation.