---
title: "RgbColor.FromHsl Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_RgbColor_FromHsl_3_8ebc23ce.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# RgbColor.FromHsl Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Creates a [RgbColor](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm.md) from the specified HSL color.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static RgbColor FromHsl(float hue,float saturation,float lightness
)
```
 
### Parameters
 
 - hue
     - Type: System.Single
Hus channel value.

 - saturation
     - Type: System.Single
Saturation channel value.

 - lightness
     - Type: System.Single
Lightness channel value.
 
### Return Value
The [RgbColor](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm.md) that this method creates.
   
## See Also

### Reference

- [RgbColor Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
