CSS Color Picker

Choose a color and opacity and get every common CSS notation at once, formatted as CSS variables you can paste into :root.

Last updated: · Runs 100% in your browser

// controls
100%
Live preview
Generated CSS
:root {
  --color-hex: #00ff66;
  --color-rgb: rgb(0, 255, 102);
  --color-rgba: rgba(0, 255, 102, 1);
  --color-hsl: hsl(144, 100%, 50%);
  --color-hsla: hsla(144, 100%, 50%, 1);
}

// Example output

:root {
  --color-hex: #00ff66;
  --color-rgb: rgb(0, 255, 102);
  --color-rgba: rgba(0, 255, 102, 1);
  --color-hsl: hsl(144, 100%, 50%);
  --color-hsla: hsla(144, 100%, 50%, 1);
}

// Features

  • ▸HEX, RGB, RGBA and HSL output
  • ▸Opacity control
  • ▸CSS custom properties
  • ▸Large live swatch
  • ▸Randomize colors

// How to use

  1. 01Adjust the controls on the left or pick a preset to start the CSS Color Picker.
  2. 02Watch the live preview update instantly as you change each setting.
  3. 03Fine-tune the generated CSS by hand in the code panel if you like.
  4. 04Click Copy CSS or Download CSS, or Share to send a link to your design.

// FAQ

Your data never leaves your browser. This tool runs 100% locally — no upload, no logging, no analytics on your inputs.

// Related tools