我想知道如何设置这段文字的颜色:
<p style="font-size: 30px; color: #222;" class="txt>Text example</p>
<input type="color" value="#f6f82" id="colorPicker">