Skip to content

Request: Integrate HCT Color Space Library for Accessibility Contrast Checks #78

@Jiwoon-Kim

Description

@Jiwoon-Kim

Description:
I’m not sure if this issue will be reviewed, but I’d like to leave it here for record-keeping and future consideration.

When performing accessibility color contrast checks within the Iris project, I recommend adopting a modern perceptual color space — specifically, the HCT (Hue, Chroma, Tone) color space. It provides far more reliable and human-perceptual contrast accuracy compared to traditional sRGB or HSL comparisons.

Reason:

  • HCT (as used in Material Design 3) better reflects human color perception.
  • It ensures more accessible and perceptually balanced color contrast evaluations.
  • It simplifies handling light/dark modes and dynamic color schemes.

Reference:

Suggestion:
Consider integrating an existing open-source HCT implementation, such as [material-foundation/material-color-utilities](https://github.com/material-foundation/material-color-utilities), for more precise and perceptually correct contrast calculations.

Thank you for your consideration!

WordPress/gutenberg#69797

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions