Convert common web units and color formats in Raycast. Type a value in the search bar and copy any matching conversion from the list.
Converts between rem, px, and pt, and maps values to the nearest Tailwind CSS spacing scale (v3.3.2).
| Input example | Outputs |
|---|---|
16px | rem, pt, Tailwind spacing (e.g. 4) or arbitrary value (e.g. [16px]) |
1rem | px, pt, Tailwind spacing |
12pt | rem, px |
Base pixel size: rem ↔ px conversions use a configurable base font size (default 16px). Change it in extension preferences under Base PX Value.
Converts between hex, rgb, hsl, and oklch, including alpha/opacity where supported. For opaque colors, the extension also suggests the closest Tailwind CSS palette color.
Hex
#006699 — 6-digit#069 — 3-digit shorthand#00669980 — 8-digit with alphaRGB / RGBA (comma-separated)
rgb(0, 102, 153)rgba(0, 102, 153, 0.5)HSL / HSLA (comma- or space-separated, modern CSS syntax)
hsl(200, 100%, 30%)hsl(200 100% 30%)hsl(200 100% 30% / 0.5)hsl(200 100% 30% / 50%) — alpha as percentagehsla(200, 100%, 30%, 0.5)OKLCH
oklch(0.45 0.12 240)oklch(45% 0.12 240) — lightness as percentageDepending on the input, you may see:
Click any result to copy it to the clipboard.
22px, #006699, hsl(200 100% 30%)).macOS and Windows.