Skip to content

Colors: Migrate color shades from HSL to OKLCH #359

@simeonoff

Description

@simeonoff

Currently all color shades, bar the 500 variant, are in the HSL color space. Switch to OKLCH to ensure better color representation on most modern displays.

Here are some of the benefits:

  • Perceptual Uniformity: Colors in OKLCH are more consistent with human perception, making adjustments (e.g., lightness or saturation) visually predictable.
  • Improved Accessibility: Easier to maintain contrast ratios for WCAG compliance, as lightness directly correlates to perceived brightness.
  • Wide Gamut Support: It accommodates a broader range of colors, especially in modern displays with extended gamuts.
  • Hue Consistency: Changes in chroma or lightness don’t shift the perceived hue, unlike HSL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions