MDN self-hosted library · e01.org
CSS color values / notebook

CSS color values

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
color: #ff0000;
color: #f00;
css
color: #ff000044;
color: #f004;
html
<div id="box">
  <label for="colorPicker">Border color:</label>
  <input type="color" value="#8888ff" id="colorPicker" />
  <output></output>
</div>