---
title: "Color.FromOklab"
url: "https://reference.aspose.com/html/java/com.aspose.html.drawing/color/fromoklab/"
product: "Aspose.HTML for Java API Reference"
description: "Color method. Returns a new Color with the requested lightness A B values for OKLAB model"
---

## Color.FromOklab method

Returns a new Color with the requested lightness, A, B values for OKLAB model.

```java
public static Color FromOklab(float lightness, float a, float b)
```

| Parameter | Type | Description |
| --- | --- | --- |
| lightness | Single | A float that represents the lightness component of the color. |
| a | Single | A float that represents the A component of the color. |
| b | Single | A float that represents the B 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](../../../)
