Select, View, and Compare Named Colors

This Demonstration facilitates selecting, viewing, and comparing an assortment of colors from any of Mathematica's seven named color collections. It constructs a palette of up to 13 colors for use in Mathematica or elsewhere. A selected color may be displayed as a square region or as an equiangular segment of a disk with up to 12 segments displayed on the square background. The regions are numbered from 0 to 13, where region 0 is always the square background. Any region to be colored is first selected by clicking it and then clicking the dot representing a chosen color in the panel on the right; the panel is selected from a dropdown menu. Below the graphics each displayed region's number is printed, followed by the color's collection name, its index number within the collection, the color's name, and its RGB (red-green-blue) color values.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: use the System collection to display only the square background color (region 0) with region numbering off and antialiasing off
Snapshot 2: use the Atoms collection to display one full-disk foreground color (region 1) on a non-white background (region 0)
Snapshot 3: use the GeologicAges collection to display a side-by-side comparison of two foreground colors on a non-white background with antialiasing on
Snapshot 4: use the HTML collection to display above-below comparison of two foreground colors on a white background with antialiasing off
Snapshot 5: use the Legacy collection to display nine foreground colors on a white background with clockwise region numbering
Snapshot 6: use the WebSafe to collection display 12 foreground colors on a white background with counterclockwise region numbering
This Demonstration lets you display from 1 to 13 colored regions. They are numbered from 0 to 12, where region 0 is always the square background and regions 1 to 12 are equiangular segments of a foreground disk. The colored regions are displayed on the left and the number of disk segments from 0 to 12 (the "last visible region") is chosen from the left dropdown menu. When you mouse over a colored region, a tooltip appears showing the text used to reference that color in Mathematica. The named color collection whose panel is displayed on the right is chosen from the right dropdown menu. When you mouse over a dot in a color collection's panel, a tooltip appears showing the color's name. To color a region, click it first and its number will be displayed in a larger size than that of the others. Then click a dot in the displayed color collection's panel on the right to choose the color. The four checkbox controls above the graphics specify: 1) whether to label the regions in clockwise or counterclockwise order, 2) whether to use antialiasing to blur and thereby smooth the edges of regions, 3) whether or not to display the region numbers, and 4) whether a selected dot's color applies to all displayed regions or only to the selected region. If the "clockwise" box is checked, region 1 starts at the 12 o'clock position and if unchecked, region 1 starts at the 3 o'clock position. This makes it possible to do comparisons of two foreground colors, either side-by-side or above-below.
A Mathematica notebook .nb file and a Wolfram CDF Player .cdf file similar to this Demonstration but with additional controls allowing entry of any RGB or grayscale color, along with the ability to find the nearest named color and to copy a color's reference text, the color's name, or its RGB values to the clipboard, are available here: Select, View and Compare Colors.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+