Background Blend Mode Generator - Online Image + Gradient
Layer gradients and images and blend them with background‑blend‑mode. Create hero sections. Copy CSS.
UD5 Toolkit
color-mix() Transparency & Alpha Blend DemoExplore how colors blend across different color spaces — with full alpha transparency support
Blend Gradient Preview
Result Preview
CSS Code
color-mix(in srgb, #3b82f6 50%, #ef4444 50%)
Compare Across Color Spaces — same colors, different spaces
Quick Presets
color-mix() and how does it work?
color-mix() is a CSS function that blends two colors in a specified color space. Its syntax is:
color-mix(in <color-space>, <color1> <p1>, <color2> <p2>)
The percentages determine how much of each color contributes to the result. When percentages sum to less than 100%, the remainder is treated as transparent. This function works natively in all modern browsers (Chrome 111+, Firefox 113+, Safari 16.2+) and eliminates the need for preprocessors like Sass for color blending.
color-mix()?
Alpha transparency is fully respected in color-mix(). If a color has an alpha value less than 1 (e.g., rgba(255, 0, 0, 0.5)), the blending calculation accounts for that transparency. The final result's alpha is also computed appropriately. This is particularly useful for layering semi-transparent colors, creating glass-morphism effects, or building design systems with opacity tokens.
The mix percentage and the alpha channel are independent concepts: the percentage controls the blend ratio, while alpha controls each color's opacity before blending.
sRGB — Default, widely supported. Good for general use but can produce muddy midtones with complementary colors.
Oklab / Oklch — Perceptually uniform. Produces smooth, natural-looking gradients. Highly recommended for modern web design. Oklch uses hue-based notation which is intuitive for designers.
HSL / HWB — Good for hue-based blending. Can create vibrant intermediate colors, but may have uneven perceptual brightness.
Lab / Lch — Device-independent, perceptually uniform. Excellent for precise color work and when consistency across devices matters.
Display P3 — Wider gamut. Ideal if targeting modern Apple devices with P3 displays for richer, more saturated blends.
color-mix() and Sass/SCSS mix()?
Sass mix() always blends in sRGB space and is a compile-time operation — the result is a static hex/rgb value. CSS color-mix() is native browser functionality that:
color-mix()?
color-mix() well supported across browsers?
Yes! As of 2024, color-mix() has over 89% global browser support. It's supported in:
For older browsers, provide a fallback solid color using @supports:
.element {
background: #7b7cf9; /* fallback */
}
@supports (background: color-mix(in srgb, red 50%, blue 50%)) {
.element {
background: color-mix(in oklab, #3b82f6 50%, #ef4444 50%);
}
}
Layer gradients and images and blend them with background‑blend‑mode. Create hero sections. Copy CSS.
Place bold text over an image and apply mix‑blend‑mode: screen, multiply, etc. Create stunning hero sections. Download preview.
Visually create beautiful linear and radial gradients. Get the CSS code instantly. Copy the code or export as image. Perfect for web designers.
Create text with a gradient fill using CSS background-clip. Configure colors and direction. Copy the code. Works in modern browsers.
Generate a unique, beautiful random gradient background with each click. Copy the CSS code. Endless inspiration.
Paste or write a CSS gradient value and instantly see the rendered output. Debug and iterate on gradients quickly. Local preview.
One click random beautiful gradient backgrounds with copy‑ready CSS. See full‑screen preview. Never run out of background ideas.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
Create color gradients that are perceptually uniform by interpolating in CIELAB space. Get the CSS linear‑gradient code. Visually superior.
Stack multiple text‑shadows to create a blurred, glowing gradient effect. Copy the long‑shadow CSS instantly.
Trace the edges of an uploaded image and create a glowing neon SVG effect. Adjust glow color and thickness. Download SVG.
Create CSS `easing‑gradient()` functions for smooth, non‑linear color transitions. Experimental and powerful. Copy the code.
Build a multi‑layer text‑shadow to simulate 3D extruded text. Control depth, color, and direction. Copy long shadow CSS.
Upload multiple icon images and merge them into a single sprite sheet. Get the CSS background-position code. Optimize web performance.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Create linear and radial gradients on canvas. Adjust stops and colors visually. Copy the JavaScript code.
Type text and set a gradient, then check contrast against a solid background. Ensure readability.
Upload an image and see the cyan, magenta, yellow, and black plates as separate grayscale images. Pre‑press tool.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Create shareable quote images. Choose background gradient or photo, add text, and download as PNG. Fully local design tool.
Demonstrate frequency separation by splitting an image into high/low frequency layers. Visual tool, not full editor.
Upload an image and see a rough simulation of how it might look when printed. Highlights areas that may lose detail.
Compare text‑rendering: auto, optimizeSpeed, optimizeLegibility, geometricPrecision. See kerning and ligature changes live.
Create a 3D extruded text effect using multiple text‑shadows. Adjust depth, color, and perspective. Ready‑to‑use CSS.
Quickly adjust the brightness and contrast of an image with live preview sliders. Download the tuned photo. Canvas.
Practice CSS selectors by targeting plates on a virtual restaurant table. 30+ levels. Perfect for beginners.
Build a 3D rotating cube using pure CSS. Set dimensions, colors, and animation speed. Copy the HTML and CSS.
Turn any photo into a mosaic of colored blocks or pixel art. Choose block size and palette. Download as PNG. Pure canvas.
Detect browser support for font‑tech() and font‑format() values in @font‑face src. Check COLRv1, variable, etc.