Derive, Optimise and Audit a Scientific Colour Palette from One Seed Colour

Generates sequential, diverging and categorical colour palettes from a single seed colour in OKLCH (the cylindrical lightness-chroma-hue representation of the Oklab perceptual colour space), with spacing measured by the CIEDE2000 colour-difference formula of the International Commission on Illumination. Audits every palette under simulated colour-vision deficiency, greyscale conversion, the standard Red Green Blue (sRGB) gamut and Web Content Accessibility Guidelines (WCAG) contrast. Colour-vision deficiency is simulated at severity 1.0 with the model of Machado, Oliveira and Fernandes (2009) ; the design rationale follows Crameri, Shephard and Heron (2020) . Mirrors the 'Python' reference implementation maintained in the same repository and is validated against shared parity fixtures. Thresholds are configurable design rules, not established accessibility cut-offs.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("palettecore")

0.4.1 by Heidi Helena Andersén, 2 months ago


https://github.com/heidihelena/palettecore


Report a bug at https://github.com/heidihelena/palettecore/issues


Browse source code at https://github.com/cran/palettecore


Authors: Heidi Helena Andersén [aut, cre] (ORCID:


Documentation:   PDF Manual  


Apache License (>= 2) license


Imports stats, utils

Suggests ggplot2, jsonlite


See at CRAN