# ColourConversions class

Namespace: [Grasshopper2.Types.Colour](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.colour.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class ColourConversions
```

Provides static methods for converting one colour space into another. These methods have been implemented based on http://www.easyrgb.com/index.php?X=MATH and do not depend on code in Eto, Rhino, or any other assembly.

## Fields

- [XLimit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/xlimit.md): (static)
- [YLimit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/ylimit.md): (static)
- [ZLimit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/zlimit.md): (static)

## Methods

- [ApplyAdjective](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/applyadjective.md): (static) Apply an adjective to a colour.
- [Cmy_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/cmy-rgb.md): (2 overloads, static) Convert RGB channels into CMY channels.
- [Cmyk_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/cmyk-rgb.md): (2 overloads, static) Convert CMYK channels into RGB channels.
- [Hsl_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/hsl-rgb.md): (2 overloads, static) Convert HSL channels into Standard RGB channels.
- [Hsp_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/hsp-rgb.md): (2 overloads, static) Convert HSP (perceived luminance) channels into RGB channels.
- [Hsv_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/hsv-rgb.md): (2 overloads, static) Convert HSV/B channels into Standard RGB channels.
- [Lab_Xyz](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/lab-xyz.md): (2 overloads, static) Convert Cie L*a*b* channels into Cie XYZ channels.
- [MapYxyPlanckianLoci](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mapyxyplanckianloci.md): (static) Compute the points for key temperatures along the black body curve of the CIE Chromaticity diagram.
- [MapYxyPlanckianLocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mapyxyplanckianlocus.md): (static) Compute the points for a degree=3 bezier curve describing the black body curve of the CIE Chromaticity diagram.
- [MapYxyRgbGamut](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mapyxyrgbgamut.md): (static) Compute the cornerpoints of the sRGB gamut triangle within the CIE Chromaticity diagram.
- [MapYxySpectralLoci](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mapyxyspectralloci.md): (static) Compute the points for key wavelengths along the spectral curve of the CIE Chromaticity diagram.
- [MapYxySpectralLocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mapyxyspectrallocus.md): (static) Compute the points for a degree=3 bezier curve describing the spectral curve of the CIE Chromaticity diagram.
- [MixColourNames](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/mixcolournames.md): (static) Mix two colours using the linguistic parser logic. This method interpolates between the colours inside the Sinusoidal model.
- [Oklab_Oklch](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/oklab-oklch.md): (static) Convert Oklab channels into their polar Oklch form.
- [Oklab_RgbLinear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/oklab-rgblinear.md): (2 overloads, static) Convert Oklab channels into linear RGB channels.
- [Oklch_Oklab](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/oklch-oklab.md): (static) Convert polar Oklch channels into Oklab channels.
- [Rgb_Cmy](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-cmy.md): (2 overloads, static) Convert RGB channels into CMY channels.
- [Rgb_Cmyk](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-cmyk.md): (2 overloads, static) Convert standard RGB channels into CMYK channels.
- [Rgb_Hsl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-hsl.md): (2 overloads, static) Convert Standard RGB channels into HSL channels.
- [Rgb_Hsp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-hsp.md): (2 overloads, static) Convert RGB channels into H*SP (perceived luminance) channels.
- [Rgb_Hsv](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-hsv.md): (2 overloads, static) Convert Standard RGB channels into HSV/B channels.
- [Rgb_Hue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-hue.md): (2 overloads, static) Convert an RGB triplet into an HSB/HSV/HSL hue.
- [Rgb_Xyz](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgb-xyz.md): (2 overloads, static) Convert Standard RGB channels into Cie XYZ channels.
- [RgbGammaAdjust](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgbgammaadjust.md): (2 overloads, static) Perform a gamma correction on linear RGB channels.
- [RgbGammaRevert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgbgammarevert.md): (2 overloads, static) Perform an inverse gamma correction on non-linear RGB channels.
- [RgbLinear_Oklab](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgblinear-oklab.md): (2 overloads, static) Convert linear RGB channels into Oklab channels.
- [RgbLinear_RgbStandard](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgblinear-rgbstandard.md): (2 overloads, static) Convert linear RGB channels to standard RGB channels.
- [RgbStandard_RgbLinear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/rgbstandard-rgblinear.md): (2 overloads, static) Convert standard RGB channels to linear RGB channels.
- [ToAdjustedHue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/toadjustedhue.md): (2 overloads, static) Convert an HSV hue into an HSP hue.
- [ToTraditionalHue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/totraditionalhue.md): (2 overloads, static) Convert an HSP hue into an HSV hue.
- [TryParseNamedColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/tryparsenamedcolour.md): (static) Try and parse a text describing a colour by name.
- [Xyz_Lab](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/xyz-lab.md): (2 overloads, static) Convert Cie XYZ channels into Cie L*a*b* channels.
- [Xyz_Rgb](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/xyz-rgb.md): (2 overloads, static) Convert Cie XYZ channels into Standard RGB channels. Note that the RGB values are neither clipped nor tonemapped, so they may well exceed the [0~1] range.
- [Xyz_Yxy](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/xyz-yxy.md): (2 overloads, static) Convert Cie XYZ channels into Cie Chromaticity diagram channels.
- [Yxy_Xyz](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions/yxy-xyz.md): (2 overloads, static) Convert Cie Chromaticity Diagram channels into Cie XYZ channels.
