devinsays/options-framework-theme — pull request #67 by ryanjkoehler (2012-08-29 16:11:14+00:00)
Title: simplify hex validation, color always saves with # prepended

I plugged in the snippet you provided from the twenty-eleven theme

- always lowercases color and saves with #
- simple preg match for valid hex (without the %23 check, which I don't think twenty-eleven checks for anyways)