# Color Picker and Preview A color picker preview where you can choose to have the color or backgroundColor get updated based on the result of a color picker. It also supports ensuring the foreground text is always readable by performing a YIQ calculation to set the text to black or white based on the contrast of the color and backgroundColor. ## Usage ```html

A

#
``` This will update the `backgroundColor` by default but you can choose to have the color preview update the `color` instead by setting the `data-color-preview-style-value="color"` attribute of the color preview controller.