CSS Relative Color Syntax is a new feature in CSS Color Level 4 that allows you to create new colors based on the channel values of an existing color.
color-space(from <color> channel1 channel2 channel3 / alpha)
oklch(from #3b82f6 calc(l + 0.2) c h) - Create a lighter variant based on blue
hsl(from #3b82f6 h calc(s * 0.5) l) - Reduce saturation
rgb(from #3b82f6 r g b / 0.5) - Semi-transparent version
✅ Chrome 119+ | ✅ Edge 119+ | ✅ Safari 16.4+ | 🔄 Firefox (In Development)
Yes, completely free to use, no registration required.
CSS Relative Color Syntax allows you to create new colors based on an existing color by adjusting its channel values.
Supports oklch, oklab, lab, lch, hsl, hwb, rgb and other CSS color spaces.
Chrome 119+, Edge 119+, Safari 16.4+ already support it.
No. All processing is done locally in your browser.