font‑palette CSS Playground - Online Color Fonts Explorer
Pick a COLRv1 color font and change its palette with font‑palette. Create custom palettes with @font‑palette‑values.
UD5 Toolkit
HEX — 最常用的颜色格式,使用6位十六进制表示RGB。简洁通用,所有浏览器完美支持。
rgb() / rgba() — 红绿蓝通道,每通道0-255。现代CSS统一使用 rgb(r g b / a) 语法。
hsl() / hsla() — 色相(Hue)、饱和度(Saturation)、亮度(Lightness)。HSL 更贴近人类感知,调整颜色更直观。
hwb() — 色相(Hue) + 白度(Whiteness) + 黑度(Blackness)。比HSL更直观地混合白色或黑色来调整颜色。
oklch() ⭐ — 现代CSS颜色空间,感知均匀。L(亮度0-1)、C(色度)、H(色相)。可表达P3广色域颜色,比sRGB鲜艳50%。MDN
oklab() — 改进的Lab空间,感知均匀,计算效率高。L(亮度0-1)、a(绿-红轴)、b(蓝-黄轴)。适合渐变插值。
lch() — CIELCh颜色空间。L(亮度0-100)、C(色度)、H(色相)。比HSL更均匀,可表达超出sRGB的颜色。
lab() — CIE Lab颜色空间。L(亮度0-100)、a(绿-红)、b(蓝-黄)。设备无关,覆盖人类可见所有颜色。
OKLCH is perceptually uniform — equal numeric changes produce equal visual changes. HSL has uneven brightness perception (e.g., yellow at 100% lightness looks much brighter than blue at 100%). OKLCH also unlocks the P3 wide gamut for 50% more vibrant colors on modern screens.
Modern CSS uses space-separated values: rgb(255 128 0 / 0.8) instead of rgba(255,128,0,0.8). Both work, but the new syntax is cleaner and allows omitting alpha when not needed.
OKLCH is supported in Chrome 111+, Safari 15.4+, Firefox 113+, and Edge 111+. Global coverage is ~92% as of 2025. Use @supports (color: oklch(0 0 0)) for graceful fallbacks.
Display P3 covers ~50% more colors than sRGB. Colors defined with oklch() or color(display-p3 ...) can utilize these extra-vibrant colors on compatible displays (most modern phones and Macs).
Define: --brand: oklch(0.65 0.25 260); — then use color: var(--brand); anywhere. You can even animate between color spaces with @property for smooth transitions.
OKLab is a simplified, computationally efficient version of CIE Lab, designed for better performance in real-time applications. Both are perceptually uniform, but OKLab is preferred for web use due to simpler math and better gradient interpolation.
Pick a COLRv1 color font and change its palette with font‑palette. Create custom palettes with @font‑palette‑values.
Write CSS like `oklch(from red l c h)` to modify colors. Preview the output and copy. Modern color manipulation.
Write CSS like `oklch(from red l c h)` to modify colors dynamically. Preview the output and copy the code.
Pick two colors and mix them in different color spaces with sliders. See the difference between sRGB and OKLCH mixing. Copy the code.
Visually create beautiful linear and radial gradients. Get the CSS code instantly. Copy the code or export as image. Perfect for web designers.
Browse a collection of common UI components (cards, modals, navbars) built with pure CSS. Preview and copy the HTML/CSS. Fast prototyping.
Add multiple CSS filters (grayscale, blur, hue‑rotate) to an image. See the combined effect. Copy the CSS filter value.
Write global CSS and auto‑generate unique, scoped class names with source maps. Understand CSS Modules naming.
Design beautiful buttons with gradients, shadows, and hover/active effects. No JavaScript required. Copy the CSS.
Pick two images or colors and apply all 16 CSS mix‑blend‑mode values live. See and copy the right CSS for your design.
Interactively apply CSS filter functions (blur, brightness, contrast, etc.) to an image and copy the resulting filter property. No coding required.
Compile LESS code to plain CSS in your browser. Check for syntax errors and get clean output. For legacy projects.
Style the <progress> and <meter> elements with cross‑browser CSS. Adjust colors and sizes. Copy the final styles.
Make your JavaScript code more readable with this online beautifier. Format and indent JS automatically. Works entirely in your browser, protecting your code privacy.
Minify JavaScript and CSS code to reduce file size for production. Remove whitespace and comments instantly. Run locally, your code stays private.
Type text and instantly see it rendered with text‑transform: uppercase, lowercase, capitalize, and full‑width. Copy CSS.
Create gradient‑filled text with the background‑clip property. Choose linear or radial gradients. Get the CSS. Modern typography.
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.
Write scoped CSS rules that apply only within a subtree. See the boundary limits and avoid naming conflicts. New browser feature.
Add rows and columns, merge cells, and set gaps visually. Get the grid‑template CSS and HTML. Fast layout prototyping.
Paste code and get a beautifully highlighted preview with line numbers. Supports many languages. Copy as HTML. Pure frontend.
Paste your SCSS or Sass code and compile it to standard CSS. Basic sass.js engine runs in your browser. No server.
Visually apply CSS transform functions like rotate, scale, skew, and translate. Obtain the exact CSS code for your elements. No coding needed.
Compile SCSS code to CSS directly in the browser using the official Sass.js library. Supports variables, mixins, nesting. No server upload required.
Toggle between normal, nowrap, pre, pre‑wrap, and pre‑line to understand how whitespace is handled. Live text example.
Set up Stylelint rules for your project by selecting extensions (SCSS, order, etc.). Output a valid .stylelintrc.
Enter L*a*b* values and see the corresponding RGB and hex color. Useful for advanced color manipulation.
Drag points to create a custom clip‑path shape. See the CSS value update live. For creating non‑rectangular elements.
Paste a CSS gradient and export a vertical swatch image. Ideal for design documents. No server needed.
Choose from a dozen pure CSS loading spinners. Customize color, size, and speed. Copy the HTML & CSS. No JavaScript needed.