Tools51

CSS & UI STUDIO GUIDE

How to create Spotify-style two-color CSS duotone image effects

Unify diverse photography into cohesive two-tone brand visuals with pure CSS.

Map dark photo shadows and bright highlights to any two brand colors in pure CSS using grayscale contrast filters and mix-blend-mode: multiply + lighten.

Follow the guide
Before Unmatched Raw Photo Colors
CSS Duotone & Blend-Mode Generator unstyled HTML before — Unmatched Raw Photo Colors
Clashing stock photo colors competing with your brand palette.
After Brand-Matched CSS Duotone
CSS Duotone & Blend-Mode Generator styled CSS result after — Brand-Matched CSS Duotone
Crisp two-color duotone mapping shadows to deep indigo and highlights to lavender.
QUICK VIDEO TUTORIAL How to create Spotify-style two-color CSS duotone image effects Unify diverse photography into cohesive two-tone brand visuals with pure CSS. Watch the video

How to create Spotify-style two-color CSS duotone image effects

01

Select a shadow & highlight color pair

Open CSS Duotone & Blend-Mode Generator and compare Royal Violet & Lavender, Midnight & Electric Mint, Ultraviolet & Warm Coral, Architectural Blueprint, and Dark Nocturne duotones.

Click Customize to test different tonal scenes and contrast curves.

02

Balance shadow depth, highlight tint, and contrast

In Fill, set Dark shadows color (mapped via mix-blend-mode: lighten) and Light highlights color (mapped via background-color + mix-blend-mode: multiply).

In Shadow/Effects, adjust Grayscale contrast and brightness so midtones separate cleanly.

Keep shadow color darker in luminance than highlight color

Because lighten replaces pixels darker than shadowColor and multiply tints pixels lighter than highlightColor, keeping shadowColor darker preserves natural tonal polarity!

Place text badges at z-index: 2 above ::after

Any <figcaption> or play button with z-index: 2 sits above the ::after blend overlay in crisp untinted white.

03

Copy self-contained duotone card CSS

isolation: isolate ensures blend modes stay strictly inside <figure> without blending into parent backgrounds.

Copy Vanilla CSS, <figure> + <img> HTML, :root variables, or Tailwind mix-blend-* classes.

Ready to use CSS Duotone & Blend-Mode Generator?

Open CSS Duotone & Blend-Mode Generator in your browser—100% private on your device with zero sign-up and copy-ready CSS, HTML, :root tokens, and Tailwind code. Related CSS studios: CSS Image Filter Generator, CSS Mesh & Aurora Gradient Generator, CSS Card Generator.

Open CSS Duotone & Blend-Mode Generator
Common questions

CSS Duotone & Blend-Mode Generator FAQs

Practical frontend details for accessible, cross-browser CSS output.

Do I need pre-edited Photoshop images for CSS duotone?

No—filter: grayscale(100%) contrast(120%) converts any standard JPEG, WebP, or <video> into an optimal monochrome base live in the browser.

What happens if I swap dark and light colors?

Inverting luminance creates a solarized negative poster look—keep shadowColor deep (#090d16–#3b0764) and highlightColor luminous (#6ee7b7–#ffffff) for natural duotones.

Does CSS mix-blend-mode run on the GPU?

Yes—modern browsers composite multiply and lighten layers on the GPU with smooth scrolling and hover transitions.

Image detail

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina