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
- 01Adjust the controls on the left or pick a preset to start the CSS Color Picker.
- 02Watch the live preview update instantly as you change each setting.
- 03Fine-tune the generated CSS by hand in the code panel if you like.
- 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
CSS Color Converter
Convert colors between HEX, RGB and HSL instantly — paste any CSS color value and get the others.
CSS Gradient Palette Generator
Generate harmonious color palettes — analogous, complementary, triadic or monochrome — with matching gradients.
WCAG Contrast Checker
Check text and background color contrast against WCAG 2.2 AA and AAA for normal and large text.