Skip to main content
Glama
convertOklabToLrgb.js819 B
const convertOklabToLrgb = ({ l, a, b, alpha }) => { let L = Math.pow( l * 0.99999999845051981432 + 0.39633779217376785678 * a + 0.21580375806075880339 * b, 3 ); let M = Math.pow( l * 1.0000000088817607767 - 0.1055613423236563494 * a - 0.063854174771705903402 * b, 3 ); let S = Math.pow( l * 1.0000000546724109177 - 0.089484182094965759684 * a - 1.2914855378640917399 * b, 3 ); let res = { mode: 'lrgb', r: +4.076741661347994 * L - 3.307711590408193 * M + 0.230969928729428 * S, g: -1.2684380040921763 * L + 2.6097574006633715 * M - 0.3413193963102197 * S, b: -0.004196086541837188 * L - 0.7034186144594493 * M + 1.7076147009309444 * S }; if (alpha !== undefined) { res.alpha = alpha; } return res; }; export default convertOklabToLrgb;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatheusgVentura/Project-One'

If you have feedback or need assistance with the MCP directory API, please join our Discord server