thomaslindstrom / color-picker

A color picker for the Atom Editor. Right click a color and select color picker to open it.
MIT License
246 stars 50 forks source link

Color conversion rounding errors #200

Open dessant opened 7 years ago

dessant commented 7 years ago

Selecting #27ae60 and converting to rgb or hsv will give incorrect values. The rest of the formats could also have the same issue.

Expected values:

rgb(39, 174, 96)
hsv(145, 77.6%, 68.2%)

Current output:

rgb(39, 173, 96)
hsv(146, 77%, 67%)