~ $ devkit:color-convert
Color Converter
Convert colors between HEX, RGB and HSL. Accepts #rgb, #rgba, #rrggbb, #rrggbbaa, rgb()/rgba() and hsl()/hsla() formats.
HEX#ffb454
RGBrgb(255, 180, 84)
HSLhsl(32, 100%, 66%)
How to use Color Converter
- Enter a HEX, RGB or HSL color, or choose a color from the picker.
- Select Convert to see HEX, RGB and HSL values with a swatch. Alpha values are preserved in text conversions.
Example
HEX: #ff000080 RGB: rgba(255, 0, 0, 0.502) HSL: hsla(0, 100%, 50%, 0.502)
Details and limitations
Supports 3/4/6/8-digit HEX and numeric RGB/HSL forms. Color names, lab(), lch(), oklch() and color() are not supported. Byte-based HEX alpha may differ slightly from a decimal alpha due to rounding.