Converts RGB values to hex color string (supports custom min/max ranges, auto-remaps to 0-255). Example: r=255, g=87, b=51 with range [0,255] → '#ff5733' Example: r=1, g=0.5, b=0.2 with range [0,1] → '#ff7f33'
Color hext
hex color
Converts RGB object to hex color string (supports custom min/max ranges). Example: {r: 1, g: 0.5, b: 0.2} with range [0,1] → '#ff7f33'
Color hext
hex color string
Converts hex color to RGB and remaps values to a custom range. Example: '#FF5733' mapped to [0,1] → {r: 1, g: 0.341, b: 0.2} Example: '#FF5733' mapped to [0,100] → {r: 100, g: 34.1, b: 20}
Color hext
rgb color
Creates and returns a hex color string (pass-through for color input). Example: '#FF5733' → '#FF5733'
Color hex
color string
Creates and returns rgba color object
Color rgba
color object
Creates atomic rgb color object
Color rgb
color object
Creates atomic rgb color object
Color rgb
color object
Extracts the red channel value from hex color (can be mapped to custom range). Example: '#FF5733' with range [0,1] → 1
Color hext
rgb color
Extracts the green channel value from hex color (can be mapped to custom range). Example: '#FF5733' with range [0,1] → 0.341
Color hext
rgb color
Extracts the blue channel value from hex color (can be mapped to custom range). Example: '#FF5733' with range [0,1] → 0.2
Color hext
blue param
Inverts a hex color (flips RGB channels: 255-r, 255-g, 255-b). With blackAndWhite=true → returns '#000000' or '#ffffff' based on brightness. Example: '#FF5733' → '#00a8cc', '#FF5733' with blackAndWhite=true → '#ffffff'
hex color and black and white option
inverted color
Extracts the red channel value from RGB object. Example: {r: 255, g: 87, b: 51} → 255
Color rgb
red param
Extracts the green channel value from RGB object. Example: {r: 255, g: 87, b: 51} → 87
Color rgb
green param
Extracts the blue channel value from RGB object. Example: {r: 255, g: 87, b: 51} → 51
Color rgb
blue param
Converts hex color to RGB object with r, g, b values (0-255 range). Example: '#FF5733' → {r: 255, g: 87, b: 51}