Refactored preview, which now is a readonly input text, so the color's CSS code is easily selectable.
Updated the demo as well.