---
name: "plrgbhls"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plrgbhls"
---

# plrgbhls(3plplot)

Convert RGB color to HLS

## NAME

**plrgbhls** - Convert RGB color to HLS

## SYNOPSIS

**plrgbhls**(*r*, *g*, *b*, *p\_h*, *p\_l*, *p\_s*)

## DESCRIPTION

Convert RGB color coordinates to HLS

Redacted form: General: **plrgbhls(r, g, b, p\_h, p\_l, p\_s)**

This function is used in example 2.

## ARGUMENTS

- *r* (**PLFLT**(3plplot), input)

  Red intensity (0.0-1.0) of the color.

- *g* (**PLFLT**(3plplot), input)

  Green intensity (0.0-1.0) of the color.

- *b* (**PLFLT**(3plplot), input)

  Blue intensity (0.0-1.0) of the color.

- *p\_h* (**PLFLT\_NC\_SCALAR**(3plplot), output)

  Returned value of the hue in degrees (0.0-360.0) on the color cylinder.

- *p\_l* (**PLFLT\_NC\_SCALAR**(3plplot), output)

  Returned value of the lightness expressed as a fraction (0.0-1.0) of the axis of the color cylinder.

- *p\_s* (**PLFLT\_NC\_SCALAR**(3plplot), output)

  Returned value of the saturation expressed as a fraction (0.0-1.0) of the radius of the color cylinder.

## AUTHORS

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

## SEE ALSO

PLplot documentation at http://plplot.org/documentation.php.
