cindyxiaoxiaoli

cindyxiaoxiaoli / HexValue2ColorName / 0.3.0

README.md

Overview

Returns the color name as a string given the closet color's color name. Contains 139 color names like: White, Black, MintCream, MidnightBlue etc.

Usage

Input

Hex Value of the Color as a string. Note please omit the #. e.g. use "00FFFF" rather than "#00FFFF" as the input.

Output

"Aqua"

Credit

The part of looking up a color name from the rgb values is edited from https://gist.github.com/nightlark/6482130#file-gistfile1-java (that has some errors) by Ryan Mast (nightlark)