Skip to content

Add HSL P3 and HSL Rec.2020 color spaces - #735

Merged
LeaVerou merged 2 commits into
mainfrom
hsl-wide-gamut
Jun 13, 2026
Merged

LeaVerou merged 2 commits into
mainfrom
hsl-wide-gamut

Conversation

@LeaVerou

@LeaVerou LeaVerou commented Jun 9, 2026

Copy link
Copy Markdown
Member

Add hsl-p3 and hsl-rec2020 color spaces, applying the HSL algorithm to wide-gamut RGB bases.

Follows the LCH/OkLCh convention: reuse HSL.fromBase/toBase with the base and rgbGamut swapped to P3 / Rec.2020 respectively.

πŸ€– Generated with Claude Code

Reuse the HSL algorithm on wide-gamut RGB bases, following the
LCH/OkLCh convention of sharing fromBase/toBase across a different base.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

βœ… Deploy Preview for colorjs ready!

Name Link
πŸ”¨ Latest commit 83af110
πŸ” Latest deploy log https://app.netlify.com/projects/colorjs/deploys/6a27d13c0bd39e0008046d56
😎 Deploy Preview https://deploy-preview-735--colorjs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
πŸ€– Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

These are non-standard spaces, so give them --prefixed CSS ids
(like hsluv, okhsl) to avoid being treated as CSS-standard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LeaVerou
LeaVerou merged commit fcdc920 into main Jun 13, 2026
4 of 5 checks passed
@LeaVerou
LeaVerou deleted the hsl-wide-gamut branch June 13, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant