---
title: "Convert CIEXYZ to u and v"
---

### Description

Converting one (or multiple) colors defined by their X, Y, and Z
coordinates in the CIEXYZ color space to their corresponding
u and v coordinates.

### Usage

<pre><code class='language-python'>colorlib.XYZ_to_uv(X, Y, Z)</code></pre>

### Arguments

<dl class="pyp-list param-list">
  <dt style = "white-space: nowrap; font-family: monospace; vertical-align: top">
   <code id="colorspace.colorlib.colorlib.XYZ_to_uv:X">X</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Values for the `Z` dimension.</dd>
  <dt style = "white-space: nowrap; font-family: monospace; vertical-align: top">
   <code id="colorspace.colorlib.colorlib.XYZ_to_uv:Y">Y</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Values for the `Y` dimension.</dd>
  <dt style = "white-space: nowrap; font-family: monospace; vertical-align: top">
   <code id="colorspace.colorlib.colorlib.XYZ_to_uv:Z">Z</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Values for the `Z` dimension.</dd>
</dl>

### Return

<code>list</code>: Returns a list of `numpy.ndarray`s (`[u, v]`). 
