Skip to content
@kurkle/color
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Menu
Samples
Mix and interpolate
OKLCH picker
Build a palette
Out-of-gamut oklch
Alpha and blending
Every named colour
Guide
Getting started
Parsing
Formatting
Transforming
Color
Color
color()
RGBA
Parse a color
hexParse
nameParse
rgbParse
hueParse
oklchParse
Write a color string
hexString
rgbString
hslString
oklchString
Convert between models
rgb2hsl
hsl2rgb
hwb2rgb
hsv2rgb
rgb2oklch
oklch2rgb
srgb2linear
linear2srgb
Standalone transforms
rotate
interpolate
Byte helpers
b2n
n2b
p2b
b2p
n2p
lim
round
GitHub
Select theme
Dark
Light
Auto
lim
lim
(
value
,
min
,
max
):
number
Defined in:
byte.ts:14
Parameters
Section titled “Parameters”
value
Section titled “value”
number
min
Section titled “min”
number
max
Section titled “max”
number
Returns
Section titled “Returns”
number