Color 1.6 Released

color version 1.6 has been released!

Color is a Ruby library to provide basic RGB, CMYK, HSL, and other
manipulation support to applications that require it. It also provides
named RGB colours (184 with spelling variations) that are commonly
supported in
HTML, SVG, and X11 applications. A technique for generating
contrasting palettes is also included.

The Color library performs purely mathematical manipulation of the
based on colour theory without reference to colour profiles (such as
sRGB or
Adobe RGB). For most purposes, when working with RGB and HSL colour
this won’t matter. Absolute colour spaces (like CIE Lab* and XYZ) and
be reliably converted to relative colour spaces (like RGB) without

Color version 1.6 primarily adds a colour matching method for RGB and
experimental CIE Lab* and XYZ conversion methods for use with the
matching method.

Barring bugs introduced in this release, this is the last version of
color that
supports Ruby 1.8, so make sure that your gem specification is set
properly (to
~> 1.6) if that matters for your application.


1.6 / 2014-05-19

  • Major enhancements:

    • Aaron Hill (@armahillo) implemented the CIE Delta E 94 method by
      which an
      RGB colour can be asked for the closest matching colour from a list
      provided colours. Fixes #5.
    • To implement #closest_match and #delta_e94, conversion methods for
      sRGB to
      XYZ and XYZ to Lab* space were implemented. These should be
  • Tooling fixes:

    • Ensured that the gem manifest was up-to-date. Fixes #4 reported by
    • Fixed problems with Travis builds. Note that Ruby 1.9.2 is no longer
      tested. Rubinius remains in a ???failure-tolerated??? mode.
    • Color 1.6 is, barring security patches, the last release of Color
      that will
      support Ruby 1.8.