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.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Create a pure CSS scroll progress indicator using animation‑timeline: scroll(). No JavaScript. Copy the complete code.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Paste an SVG and get an optimized, URL‑encoded data URI for use in CSS backgrounds. Reduces file size and escapes characters.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Generate a random HTML/CSS card with different box model properties. Inspect and guess the size. For learners.
Automatically remove white background from an image and make it transparent. Adjust tolerance. Save as PNG.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Upload two images and apply CSS blend modes (multiply, screen, overlay, etc.). See the result and copy the filter CSS. Pure frontend.
Add print styles like removing backgrounds, adding page breaks, setting margins. See print preview instantly.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Recreate the target CSS linear gradient by adjusting stops and colors. A unique game for front‑end developers to master gradients.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
Remove solid or similar backgrounds from images using color thresholding. No AI, just quick client-side canvas processing. Download as PNG.
Create text with a gradient fill using CSS background-clip. Configure colors and direction. Copy the code. Works in modern browsers.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.