Tools38

Photo tone map

Duotone Generator.

Map image shadows, midtones, and highlights to your palette and export crisp PNG, WebP, or CSS SVG filters.

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to create duotone & tritone photos and SVG filters Read the guide

Create perceptual OKLCH duotone and tritone photo effects with SVG filter code

Map image luminance smoothly from deep shadow ink through optional midtones to bright highlights using your Active Palette, then download crisp PNG/WebP files or copy matching SVG <feComponentTransfer> filter code.

Real-time 256-step OKLCH luminance LUT mapper with PNG, WebP, and SVG filter export.
QUICK VIDEO TUTORIAL How to create duotone & tritone photos and SVG filters Map shadows, midtones, and highlights in OKLCH—and export PNG or pure CSS/SVG code. Watch the video

How to create duotone & tritone photos and SVG filters

Editorial photography & lightweight CSS effects

Art Direction

Duotone & Tritone modes

Add a third midtone anchor to introduce rich chromatic warmth between shadows and highlights.

Web Performance

SVG feComponentTransfer

Apply brand duotones non-destructively to grayscale images in CSS without storing duplicate assets.

9-Format Support

Instant local rendering

Drop or paste PNG, JPG, GIF, TIF, TIFF, WebP, BMP, or SVG images directly in your browser.

Key capabilities

Perceptual OKLCH luminance LUT

Maps 256 grayscale levels smoothly across Shadow, Midtone, and Highlight palette colors.

SVG filter export

Outputs both high-res raster images and reusable SVG feComponentTransfer filters.

Exact 0.0 ΔE SVG feColorMatrix

Generates both inline <feColorMatrix> markup and single-line CSS Data-URI filter rules with zero color error.

Alpha-safe

Recolors opaque and semi-transparent icon pixels accurately while keeping anti-aliased edges crisp.

Perceptual OKLCH harmonies

Generates Analogous, Complementary, Split, Triadic, Tetradic, and Monochromatic palettes with sRGB gamut clamping.

How OKLCH helps

Rotating hues in OKLCH preserves perceived brightness and prevents neon clipping across light and dark styles.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Any Photo (PNG, JPG, TIF, WebP, BMP, SVG) + Active Palette
Outputs & exports
Duotone/Tritone PNG, WebP & SVG <feComponentTransfer> Filter

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
How does Contrast curve affect the duotone?

Values above 1.0 apply an S-curve that deepens shadows and brightens highlights for punchier poster graphics, while values below 1.0 create softer editorial washes.

How do I use the exported SVG filter in CSS?

Embed the <svg> snippet once in your HTML document and apply filter: url(#duotone) to any image or hero container.

Why export an SVG feComponentTransfer filter?

A tiny 10-line SVG/CSS filter lets you apply your exact duotone effect dynamically to standard <img> tags in HTML without duplicating image files.

When does adding a third Midtone swatch help?

Tritone mode preserves rich skin warmth or vibrant midtones between deep shadows and crisp highlights without washing out contrast.

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