---
title: "Convert RGB to HSV"
---

### Description

Shortcut from RGB to HSV (not via sRGB).
All r/g/b values in `[0., 1.]`, h in `[0., 360.]`, l and s in `[0., 1.]`.

### Usage

<pre><code class='language-python'>colorlib.RGB_to_HSV(r, g, b)</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.RGB_to_HSV:r">r</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Intensities for red (`[0., 1.]`)</dd>
  <dt style = "white-space: nowrap; font-family: monospace; vertical-align: top">
   <code id="colorspace.colorlib.colorlib.RGB_to_HSV:g">g</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Intensities for green (`[0., 1.]`)</dd>
  <dt style = "white-space: nowrap; font-family: monospace; vertical-align: top">
   <code id="colorspace.colorlib.colorlib.RGB_to_HSV:b">b</code><code class="argument-class">numpy.ndarray</code>
  </dt>
 <dd>Intensities for blue (`[0., 1.]`)</dd>
</dl>

### Return

<code>list</code>: Returns a list of `numpy.ndarray`s with the corresponding
coordinates in the HSV color space (`[h, s, v]`). Same length as
the inputs.
