CSS Color Tools & Gradient Generators
Color manipulation and generation tools.
Gradient Generator
Create beautiful CSS gradients with live preview. Linear, radial, and conic gradients supported.
Color Converter
Convert colors between HEX, RGB, HSL, and other formats instantly.
Gradient Text Generator
Generate stunning gradient text effects using background-clip and text-fill techniques.
Theme Generator
Create complete color themes with dark mode support.
RGBA Generator
Generate RGBA, HEX8, and HSLA color values with an alpha transparency slider and live preview.
Color Mix Calculator
Mix two colors in different color spaces using the CSS color-mix() function.
Color Palette Generator
Generate harmonious color palettes — shades, analogous, complementary, triadic, and more.
Other categories
Colour is where most interfaces start, and where small inconsistencies are easiest to spot: a button that is one shade off the brand colour, a gradient that bands on large screens, a hover state with not enough contrast. The colour tools on CSS Pixels let you build and convert colours visually and copy the exact CSS you need.
Use the Gradient Generator for linear, radial and conic backgrounds, and Gradient Text when you want the same effect clipped to a heading. The Color Converter and RGBA Generator move between HEX, RGB, HSL and alpha formats; Color Mix shows the result of the native color-mix() function in different colour spaces; and the Palette and Theme generators turn a single brand colour into a full set of shades, harmonies and light/dark theme variables.
A quick workflow for a consistent colour system
Pick one brand colour and generate its shades with the Color Palette Generator.
Store the shades as CSS custom properties (for example --brand-500) rather than hard-coding HEX values in components.
Prefer HSL or OKLCH for variables you will adjust — changing lightness keeps the hue stable.
Use the Theme Generator to derive a dark theme from the same tokens instead of designing it from scratch.
Check text on coloured backgrounds for contrast before shipping; WCAG asks for at least 4.5:1 for body text.
Frequently asked questions
Should I use HEX, RGB or HSL in CSS?
All three render identically. HEX is compact and common in design hand-off, RGB and HSL are easier to read and adjust, and HSL is the most convenient for building shades because you can change lightness without touching the hue.
Why does my gradient show visible bands?
Banding appears on long gradients between similar colours. Add an intermediate colour stop, use a slightly wider colour range, or blend in a subtle noise texture to hide the steps.
Is color-mix() safe to use in production?
color-mix() is supported in all current versions of Chrome, Edge, Firefox and Safari. If you must support older browsers, provide a plain colour first and the color-mix() value after it as an override.