Skip to content

CMY

The CMY color space is not registered in Color by default

Properties

Name: cmy

White Point: D65 / 2˚

Coordinates:

Name Range*
c [0, 1]
m [0, 1]
y [0, 1]

* Range denotes in gamut colors, but the color space supports an extended range beyond the gamut.

CMY

The sRGB gamut represented within the CMY color space.

The CMY color model is a subtractive color model in which cyan, magenta and yellow pigments or dyes are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three subtractive primary colors: cyan, magenta, and yellow.

The CMY color space, as ColorAide Extras has chosen to implement it, is directly calculated from the sRGB color space, and as such, is based off the sRGB primaries.

Learn more.

Channel Aliases

Channels Aliases
c cyan
m magenta
y yellow

Input/Output

CMY is not currently supported in the CSS spec, the parsed input and string output formats use the color() function format using the custom name --cmy:

color(--cmy c m y / a)  // Color function

The string representation of the color object and the default string output use the color(--cmy c m y / a) form.

>>> Color("cmy", [0, 1, 1])
color(--cmy 0 1 1 / 1)
>>> Color("cmy", [0, 0.35294, 1]).to_string()
'color(--cmy 0 0.35294 1)'

Registering

from coloraide import Color as Base
from coloraide.spaces.cmy import CMY

class Color(Base): ...

Color.register(CMY())