Skip to content

Feature request: evolving an existing palette to make it more accessible/colorblind-friendly #1

@mskyttner

Description

@mskyttner

Wishing for a feature to allow "descending the gradient towards color palette accessibility". It would be nice to be able to evolve an existing palette to make it easier to perceive for colorblind people. Given an existing set of profile colors such as described here: https://intra.kth.se/en/administration/kommunikation/grafiskprofil/profilfarger-1.845077, could a function be provided that evolves this palette into colors that are scored better with regards to colorblindness-perceivability?

This would be useful for increasing web content accessibility but staying close to branding/profile color palettes, tweaking these existing palettes towards something that works better for colorblind people...

Perhaps the "goodness" of a color choice could be measures in terms of how easy it can be perceived by colorblind through some metric that can be "evolved"... some code here might be relevant that determine colors that are suitable to be used for improving colorblind perception: http://mkweb.bcgsc.ca/colorblind/code.mhtml#page-container with corresponding "good" palettes: http://mkweb.bcgsc.ca/colorblind/palettes/24.color.blindness.palette.txt

Personally I'd like to use such functionality to improve this color palette: https://github.com/KTH-Library/ktheme/blob/master/R/palette.R#L42-L81

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions