APImcp
GuidesUtilities
ConsoleDocsMCP
Utilities ⏱ 1 min read

Color Converter API — Convert Between Hex, RGB, HSL, and Color Names

Convert colors between hex, RGB, HSL, and named color formats. Free API for designers and developers.

01

What is Color Conversion?

Color conversion transforms colors between common color representations used in web development and design. The API supports hex (#ff6600), RGB (rgb(255, 102, 0)), HSL (hsl(24, 100%, 50%)), and basic color names (orange). It returns the converted value and all alternative representations.

02

How to Use It

Call GET /api/v1/color-converter?color=%23ff6600. Returns { input: string, hex: string, rgb: { r: number, g: number, b: number }, hsl: { h: number, s: number, l: number }, name: string }.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

What color formats are supported?
Hex (#RRGGBB and #RGB), RGB/RGBA, HSL/HSLA, and CSS named colors.