Beta RazorAPI is in beta testing — new registrations are closed for now. Public launch coming soon. Details

Hex · RGB · HSL

Color Converter

Convert between Hex, RGB, and HSL — pick from/to or auto-detect what you paste.

Playground

Color Converter

Paste #hex, rgb(), or hsl(). Choose formats or leave From on Auto-detect.

Ready

Optional — try the API without a key (shared tools quota). Public signup is closed during beta — learn more.

Uses the tools API proxy when no key is entered.

Color formats

One converter for Hex, RGB, and HSL

Bidirectional color math with auto-detect and CSS-ready strings

Any direction

Hex ↔ RGB ↔ HSL — including RGB→Hex and HSL→RGB.

from · to

Auto-detect

Paste a color and we infer hex, rgb(), or hsl() when From is Auto.

from=auto

CSS strings

Get #hex, rgb()/rgba(), and hsl() plus channel numbers.

css.*

API included

POST /v1/convert/color with input, from, and to.

POST /convert/color

Need this as an API?

Normalize design tokens across Hex, RGB, and HSL in one API call

View API Docs