Skip to content
C++ library for working with different color spaces, converting between color spaces and comparing colors
C++ C Python
Branch: master
Clone or download
berendeanicolae Merge pull request #5 from yappel/patch-1
Bugfix in EuclideanComparison
Latest commit ceef2f9 Aug 28, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix bug in EuclideanComparison Aug 28, 2019
test fix test data Mar 23, 2017
.gitignore Initial commit Mar 18, 2017
ColorSpace.sln add project and initial files Mar 18, 2017
ColorSpace.vcxproj refactor code Jul 19, 2017
LICENSE Initial commit Mar 18, 2017 Corrected typo May 23, 2019


Build status

C++ library for converting between color spaces and comparing colors.

Color Conversion

You can convert between any supported color spaces using the To template method:

ColorSpace::Lab lab(100, 0, 0);
ColorSpace::Cmy cmy;

Color Comparison

You can compare colors by using the Compare method of each comparison class:

ColorSpace::Lab a(100, 0, 0);
ColorSpace::Rgb b(255, 255, 255);
ColorSpace::Cie2000Comparison::Compare(&a, &b);

Currently Supported Color Spaces

  • CMY
  • CMYK
  • HSL
  • HSB
  • HSV
  • CIE L*AB
  • Hunter LAB
  • LCH
  • LUV
  • RGB
  • XYZ
  • YXY

Currently Supported Comparisons

  • Euclidean
  • CIE1976
  • CIE94
  • CIE2000
  • CMC


ColorSpace is licenced under the MIT License, see LICENSE for more information.

You can’t perform that action at this time.