Skip to content

Find the closest xterm-256 colors (between 0 and 255) to an arbitrary HTML hexa color (e.g. #ABCDEF)

License

Notifications You must be signed in to change notification settings

jabbalaci/ClosestX11Color

Repository files navigation

Closest Xterm-256 Colors

Find the closest three xterm-256 colors (between 0 and 255) to an HTML hexa color (e.g. #ABCDEF).

Motivation

Under Linux, in a terminal, you can use 16 colors. However, most terminals support 256 different colors. You want to write a console application that uses some nice colors. If you find it difficult to pick colors from the 256 colors, then this GUI app. is for you.

How to use it? Let's say you find a nice color on an image. Open it in Gimp and use its color picker tool to identify the color. However, Gimp will tell you the color's HTML hexa code, e.g. #ABCDEF. With this app. you can find the closest colors from the 256 xterm colors. The application presents three choices that you can immediately use in your console application.

New: instead of just one color, the output now contains the closest three colors. If you don't like the first one, maybe you'll like the second or the third one.

Screenshots

Contributors

Links and Related Works