Fix a palette to be colorblind-safe
fixPaletteAdjusts color palettes that fail colorblind-safety checks, returning minimally altered colors separated in lightness so they pass.
Instructions
Take a set of colors that fails the colorblind-safety check and return an adjusted set that passes, staying as close to the originals as possible. Conflicting colors are separated in lightness (the axis color-vision deficiency preserves). Returns the new colors, how far each moved, and whether it fully passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | Hex colors to fix, e.g. ["#d7191c","#1a9641"] |