Color palettes
A color palette is a fixed-size sequence of colors and is usually represented as an array in JavaScript. A color scheme represents a collection of color palettes and is usually represented as an object or function. You can use a scheme to generate a palette containing an arbitrary sequence of colors.
Online services, such as the popular ColorBrewer by Cynthia Brewer (colorbrewer2.org), can help you choose a color palette by considering the type of data to be colored (qualitative, diverging, or sequential) and accessibility (color blindness, display/print, and gray scale). You can select and view the effects in real-time, configure accessibility and data properties, and generate a color string in different formats, including ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access