---
title: "Color.FromOklcha"
url: "https://reference.aspose.com/html/java/com.aspose.html.drawing/color/fromoklcha/"
product: "Aspose.HTML for Java API Reference"
description: "Color method. Returns a new Color with the requested luminance chroma hue alpha values for OKLAB model"
---

## Color.FromOklcha method

Returns a new Color with the requested luminance, chroma, hue, alpha values for OKLAB model.

```java
public static Color FromOklcha(float luminance, float chroma, float hue, float alpha)
```

| Parameter | Type | Description |
| --- | --- | --- |
| luminance | Single | A float that represents the luminance component of the color. |
| chroma | Single | A float that represents the chroma component of the color. |
| hue | Single | A float that represents the hue component of the color. |
| alpha | Single | A float that represents the alpha component of the color. |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* package [com.aspose.html.drawing](../../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../../)
