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

# plhlsrgb(3plplot)

Convert HLS color to RGB

## NAME

**plhlsrgb** - Convert HLS color to RGB

## SYNOPSIS

**plhlsrgb**(*h*, *l*, *s*, *p\_r*, *p\_g*, *p\_b*)

## DESCRIPTION

Convert HLS color coordinates to RGB.

Redacted form: General: **plhlsrgb(h, l, s, p\_r, p\_g, p\_b)**

This function is used in example 2.

## ARGUMENTS

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

  Hue in degrees (0.0-360.0) on the color cylinder.

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

  Lightness expressed as a fraction (0.0-1.0) of the axis of the color cylinder.

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

  Saturation expressed as a fraction (0.0-1.0) of the radius of the color cylinder.

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

  Returned value of the red intensity (0.0-1.0) of the color.

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

  Returned value of the green intensity (0.0-1.0) of the color.

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

  Returned value of the blue intensity (0.0-1.0) of the color.

## 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.
