Перейти к основному содержанию

Генератор CSS-градиентов

To create a CSS gradient, pick the colors and drag each one on the bar: the preview updates instantly and the code comes out ready in CSS and Tailwind v4 classes. OKLCH blending avoids the grayish middle, and the same gradient downloads as a PNG for posts, stories or wallpapers.

Всё выполняется в вашем браузере

Preview and code

Worst text contrast: white 2,73:1 (not usable for text); black 5,25:1 (passes AA). Check it in the Contrast Checker

background-image: linear-gradient(90deg in oklch, #ff0000 0%, #00a3ff 100%);
Show the line for older browsers (copied too)
background-image: linear-gradient(90deg, #ff0000 0%, #ff033b 5%, #fd0f58 10%, #f91c70 15%, #f52785 20%, #ef3299 25%, #e93bac 30%, #e144bd 35%, #d94ccc 40%, #cf54da 45%, #c55ce7 50%, #ba64f2 55%, #ae6cfb 60%, #a273ff 65%, #947aff 70%, #8682ff 75%, #7689ff 80%, #6490ff 85%, #5097ff 90%, #369dff 95%, #00a3ff 100%);

Line 1 is the fallback for older browsers (the same blend, as several sRGB colors); line 2 uses the OKLCH blend where the browser supports it.

Use it as a background for posts, stories, slides or wallpapers.

Colors and shape

Ready-made gradients

Type

Colors (2 of 12)

Drag each dot on the bar, or select it and use the arrow keys (Shift moves by 10).

  • Midpoint of the transition to the next color

    Moves where the blend of the two colors reaches halfway, without adding a color.

Color blending

OKLCH keeps the middle vivid; sRGB is the classic blend, which darkens between opposite colors (red and green turn olive in the middle).

Glow layers (0 of 4)

Light spots over the gradient, mesh style. Each one is a radial that fades at the edges.

Paste CSS to edit

Nothing leaves your device. To get the colors from a photo or screenshot, use the Color Extractor