CSS Color Function Explorer - Online Write Modern Colors
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
UD5 Toolkit
The font-palette CSS property allows you to select a specific color palette from a color font (like COLRv0/v1 or SVG fonts). Color fonts contain multiple built-in palettes—such as normal, light, and dark—and you can switch between them or create entirely custom palettes using @font-palette-values.
Color fonts are font files that include multiple colors, gradients, and even layered designs within the glyphs themselves. COLRv1 is the modern W3C standard for color fonts, supporting gradients, blends, and rich multi-colored glyphs. Popular COLRv1 fonts include Nabla, Bungee Spice, Foldit, and Honk, all available on Google Fonts.
The @font-palette-values at-rule lets you define a custom color palette for a specific font family. You can set a base-palette (0 for normal, 1 for light, 2 for dark) and then use override-colors to replace specific color slots with your own colors. Each slot is referenced by its index (0, 1, 2, etc.) and corresponds to a specific color layer in the font's design.
It varies by font. Nabla has approximately 10 color slots (indices 0–9), while Bungee Spice has around 5–6 slots. The slots typically represent different parts of the glyph—shadows, midtones, highlights, outlines, and fill colors. Experiment with the color pickers above to discover how each slot affects the rendered text!
As of 2024, font-palette and @font-palette-values are supported in Chrome 101+, Edge 101+, Firefox 107+, and Safari 17+ (with partial support from Safari 15.4). On unsupported browsers, color fonts will still render using their default palette—a graceful fallback.
No. The font-palette property only works with color fonts (COLRv0, COLRv1, or SVG fonts). Regular monochrome fonts (like Arial, Roboto, or Inter) don't have color palettes to switch. If you apply font-palette to a regular font, it will simply be ignored.
Google Fonts has a growing collection of COLRv1 color fonts—search for "color" in the Google Fonts library or filter by the "Color" technology tag. Some excellent options include Nabla, Bungee Spice, Foldit, Honk, Linefont, Video, and Noto Color Emoji (for emoji rendering). You can also find color fonts on independent foundries and font marketplaces.
These correspond to the font's built-in palette variations: 0 = normal (the default, often vibrant), 1 = light (typically pastel or lighter tones), and 2 = dark (darker, moodier colors). Not all fonts define all three—some may only have palette 0. Using @font-palette-values, you can base your custom palette on any of these and then override specific slots.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Write CSS like `oklch(from red l c h)` to modify colors. Preview the output and copy. Modern color manipulation.
Pick two images or colors and apply all 16 CSS mix‑blend‑mode values live. See and copy the right CSS for your design.
Write CSS like `oklch(from red l c h)` to modify colors dynamically. Preview the output and copy the code.
Write scoped CSS rules that apply only within a subtree. See the boundary limits and avoid naming conflicts. New browser feature.
Type text and instantly see it rendered with text‑transform: uppercase, lowercase, capitalize, and full‑width. Copy CSS.
Browse a collection of common UI components (cards, modals, navbars) built with pure CSS. Preview and copy the HTML/CSS. Fast prototyping.
Visually create beautiful linear and radial gradients. Get the CSS code instantly. Copy the code or export as image. Perfect for web designers.
Write global CSS and auto‑generate unique, scoped class names with source maps. Understand CSS Modules naming.
Pick two colors and mix them in different color spaces with sliders. See the difference between sRGB and OKLCH mixing. Copy the code.
Design beautiful buttons with gradients, shadows, and hover/active effects. No JavaScript required. Copy the CSS.
Paste a CSS gradient and export a vertical swatch image. Ideal for design documents. No server needed.
Create gradient‑filled text with the background‑clip property. Choose linear or radial gradients. Get the CSS. Modern typography.
Drag points to create a custom clip‑path shape. See the CSS value update live. For creating non‑rectangular elements.
Set perspective and rotate children in 3D space. See the effect of perspective‑origin. Copy the CSS. Learn 3D transforms.
Build CSS Grid layouts by defining columns, rows, and gaps visually. Get the complete grid CSS code. An essential web design tool running in the browser.
Interactively apply CSS filter functions (blur, brightness, contrast, etc.) to an image and copy the resulting filter property. No coding required.
Style the <progress> and <meter> elements with cross‑browser CSS. Adjust colors and sizes. Copy the final styles.
Add multiple CSS filters (grayscale, blur, hue‑rotate) to an image. See the combined effect. Copy the CSS filter value.
Compile LESS code to plain CSS in your browser. Check for syntax errors and get clean output. For legacy projects.
Add rows and columns, merge cells, and set gaps visually. Get the grid‑template CSS and HTML. Fast layout prototyping.
Minify JavaScript and CSS code to reduce file size for production. Remove whitespace and comments instantly. Run locally, your code stays private.
Choose from a dozen pure CSS loading spinners. Customize color, size, and speed. Copy the HTML & CSS. No JavaScript needed.
Paste code and get a beautifully highlighted preview with line numbers. Supports many languages. Copy as HTML. Pure frontend.
Set up Stylelint rules for your project by selecting extensions (SCSS, order, etc.). Output a valid .stylelintrc.
Paste your SCSS or Sass code and compile it to standard CSS. Basic sass.js engine runs in your browser. No server.
Make your JavaScript code more readable with this online beautifier. Format and indent JS automatically. Works entirely in your browser, protecting your code privacy.
Compile SCSS code to CSS directly in the browser using the official Sass.js library. Supports variables, mixins, nesting. No server upload required.
Visually apply CSS transform functions like rotate, scale, skew, and translate. Obtain the exact CSS code for your elements. No coding needed.
Set column‑count, gap, and rule, and see a multi‑column text layout. Copy the minimal CSS. For magazine designs.