search/
Start typing to search packages!
package_2
oklch-rblx
By @word30210
Roblox
MirroredOKLCH for Roblox
A Roblox Lua module that provides OKLCH <-> sRGB (Color3) color space conversion.
This is a pure math module without any UI — useful if you want to work with perceptually uniform colors in Roblox projects.
Original concept based on oklch-picker by Evil Martians.
This project is a Roblox-compatible port that focuses only on the conversion logic.
✨ Features
- Convert OKLCH → Color3 (sRGB)
- Convert Color3 (sRGB) → OKLCH
- Works as a standalone
ModuleScriptin Roblox - No dependencies
📦 Installation
- Put the
OKLCH.luaufile insideReplicatedStorage/Library/or anywhere you want. - Require it from your scripts:
local OKLCH = require(game.ReplicatedStorage.Library.OKLCH)
🚀 Usage
local OKLCH = require(game.ReplicatedStorage.Library.OKLCH)
-- Convert OKLCH to Roblox Color3
local col = OKLCH.toRGB(63.59, 57.81, 284.04)
print(col) -- Color3 value
-- Convert Color3 back to OKLCH
local L, C, H = OKLCH.fromRGB(col)
print(L, C, H)
Package Details
Install command (Click to copy)
Version
0.1.0
License
MIT
Safe for commercial use
Automated license review — not legal advice.
