A selection of aesthetically pleasing random colors

I have a set of categories (the number of which varies according to a certain state), each of which I need to assign a unique color.

I tried using random colors, but they look bad, so I need a way to generate random colors that fit together.

+6
c # colors
source share
6 answers

You should take a look at color theory and complementary colors; This will give you colors that work well together.

See Color Scheme Designer . Use tetrad mode to see how you can combine 4 colors and different shades to highlight several different areas of the image.

Here's a chart of color shades and a few examples that may help you.

+8
source share

Why not create a list of colors that, in your opinion, are suitable for each other (for example, basic red, green, blue, yellow, orange, etc.) and just choose random colors from the list, it’s safe to know that regardless that the colors are chosen, will they all look good enough together?

+3
source share

To deploy an earlier answer, you can use a service such as http://www.colr.org/ (which creates color schemes from images) to create colors that are guaranteed to be β€œnot strange,” and then select a random color from this schemes.

+3
source share

The simplest thing on earth:

Use the HSV color model ( http://en.wikipedia.org/wiki/HSL_and_HSV ) and simply change one of the (Hue) parameters to nice color transitions.

+2
source share

You will need to identify an algorithm that uses colorpicker from the Internet and see what happens when you change the fixed-value RGB values. If you can find this (for example: add 10 to the R-value, and if the end is reached, add 10 to the G-value and reset the R-value), you can dynamically create a list for yourself.

The second option is that when you know that you have the maximum maximum of categories, you can create a list and use it.

+1
source share

The three I use in these situations is to generate three random intensity values, then use these three values ​​in six possible RGB combinations to create a palette of colors that have constant intensity and uniform contrast.

An example of using three intensity values ​​33, 88 and aa.

<div style='background-color: #3388aa;'>Color 1</div> <div style='background-color: #33aa88;'>Color 2</div> <div style='background-color: #aa8833;'>Color 3</div> <div style='background-color: #aa3388;'>Color 4</div> <div style='background-color: #8833aa;'>Color 5</div> <div style='background-color: #88aa33;'>Color 6</div> 
+1
source share

All Articles