Favorites

palette-mix() CSS Function

palette-mix()
CSS FunctionThis function is supported in some modern browsers, but not all.
Updated 21st November 2026

The palette-mix() function creates a new font palette by blending two palettes of a color font, used with font-palette.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The palette-mix() CSS function creates a new font palette by blending two existing palettes of a color font. It is used as a value of the font-palette property. Color fonts, such as many emoji and display fonts, can contain several built-in palettes, and authors can define their own with @font-palette-values; palette-mix() interpolates between two of them.

The first argument is a <color-interpolation-method>, such as in oklab, which sets the color space used for blending. It is followed by two palettes, each of which can be normal, light, dark, the name of a palette defined with @font-palette-values, or another palette-mix(). Each palette can have a percentage that sets how much of it is used; like color-mix(), missing percentages are filled in so the total is 100%.

The main use of palette-mix() is animation: because font-palette can be transitioned, browsers interpolate between palettes using palette-mix() internally, and you can also set intermediate palettes directly. It is supported in Chromium-based browsers only.

@font-palette-values --warm {
  font-family: "Bungee Spice";
  base-palette: 0;
}

@font-palette-values --cool {
  font-family: "Bungee Spice";
  override-colors: 0 #2563eb, 1 #06b6d4;
}

h1 {
  font-family: "Bungee Spice";
  font-palette: palette-mix(in oklab, --warm 60%, --cool);
}

Syntax

palette-mix() = palette-mix( <color-interpolation-method>, [ [ normal | light | dark | <palette-identifier> | <palette-mix()> ] && <percentage [0,100]>? ]#{2} )

Values

  • <color-interpolation-method>The color space used to blend the palette colors, for example in oklab or in srgb.
  • paletteEach of the two palettes to mix: normal, light, dark, a <dashed-ident> defined with @font-palette-values, or another palette-mix().
  • <percentage>Optional. How much of each palette to use. Missing percentages are calculated so the total is 100%.

Example

<div class="wrap">
<h1>CSS palette-mix() examples</h1>
<div class="grid">
<div class="card">
<p class="title warm">Palette</p>
<div class="label">font-palette: --warm</div>
</div>
<div class="card">
<p class="title mix">Palette</p>
<div class="label">palette-mix(in oklab, --warm 60%, --cool)</div>
</div>
<div class="card">
<p class="title cool">Palette</p>
<div class="label">font-palette: --cool</div>
</div>
</div>
<p class="note">palette-mix() blends the palettes of a color font; this demo imitates the result with color-mix() on plain text.</p>
</div>
/* Base demo layout */
* { box-sizing: border-box; }

body {
margin: 24px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
background: #f5f7fb;
color: #102a43;
}

.wrap {
max-width: 860px;
margin: 0 auto;
}

h1 {
font-size: 20px;
margin: 0 0 16px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
}

.card {
background: #fff;
border-radius: 12px;
padding: 16px;
box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.label {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
font-size: 12px;
color: #486581;
margin-top: 10px;
word-break: break-word;
}

.note {
font-size: 13px;
color: #486581;
margin-top: 14px;
}

/* palette-mix() examples */
/* A color font with several palettes is needed to see the effect.
Here the text uses ordinary colors as a stand-in. */
.title {
font-size: 34px;
font-weight: 800;
margin: 0;
}

.warm { color: #ea580c; }
.cool { color: #2563eb; }
.mix { color: color-mix(in oklab, #ea580c 60%, #2563eb); }

code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
font-size: 12px;
color: #486581;
}
Open in editor

Browser Support

The following information will show you the current browser support for the CSS palette-mix() function. Hover over a browser icon to see the version that first introduced support for this CSS function.

This function is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.