Maybe of use: String::Approx.
In reply to Re: Best way to validate a string as a color? by 1nickt in thread Best way to validate a string as a color? by pra