---
title: "Color..::.FromHsl Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromHsl_3_8ebc23ce.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Color.FromHsl Method 
 
Returns [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) class instance constructed from hue, saturation, and lightness parameters.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function FromHsl ( _hue As Single, _saturation As Single, _lightness As Single _
) As RgbColor
```
 
```csharp
public static RgbColor FromHsl(float hue,float saturation,float lightness
)
```
 
### Parameters
 
 - hue
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The hue parameter. Means the angle at the color wheel, so meaningful values are in range [-1.0, 1.0].

 - saturation
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The saturation parameter. It should be in range [-1.0, 1.0].

 - lightness
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The lightness parameter. It should be in range [-1.0, 1.0].
 
### Return Value
 [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) class instance constructed from given HSL parameters.
 
## Examples
  
```
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.Color.FromHsl(0.8F, 0.7F, 0.4F)
```
 
```csharp
Aurigma.GraphicsMill.RgbColor rgb =
    Aurigma.GraphicsMill.Color.FromHsl(0.8F, 0.7F, 0.4F);
```
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
