Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tinrab/temelj/llms.txt
Use this file to discover all available pages before exploring further.
Types
LabColor
Represents a LAB color.Lightness component (0-100)
Green-red component
Blue-yellow component
The alpha channel value (0-1). Optional.
rgbToLab
Converts an RGB color to a LAB color.The RGB color to convert
The LAB color
Example
labToRgb
Converts a LAB color to an RGB color.The LAB color to convert
The RGB color
Example
About LAB color space
The LAB color space is designed to be perceptually uniform, meaning that the same amount of numerical change corresponds to about the same amount of visually perceived change. This makes it ideal for:- Measuring color differences
- Color interpolation
- Image processing
- Accessibility calculations
- L: Lightness from 0 (black) to 100 (white)
- a: Green (negative) to red (positive)
- b: Blue (negative) to yellow (positive)