Couleur
Aperçu
Format de sortie
Saisissez une couleur pour la convertir

Convertisseur de Couleur (Hex / RGB / HSL / Nom)

Type any color and the tool shows the other three representations plus the matching CSS color name, with a live swatch. It accepts #rgb, #rrggbb, #rrggbbaa, rgb()/rgba(), hsl()/hsla() and named colors like red or rebeccapurple.

All conversion happens in your browser — no color value is ever sent anywhere.

Features

How to use

  1. Enter a color on the left — #ff0000, rgb(255,0,0), hsl(0,100%,50%) or red.
  2. The right side shows Hex, RGB, HSL and the name together.
  3. Click Copy to take the format you need.

FAQ

What is the difference between Hex and RGB?

They are two notations for the same color: Hex is base-16, RGB is base-10. #ff0000 and rgb(255,0,0) are the identical red, just written differently.

What is the last pair in 8-digit Hex?

It is the alpha (transparency) channel — two Hex digits for 0..255, matching the fourth argument of rgba(): 00 is fully transparent and ff is fully opaque.

Why do some colors show no name?

CSS only defines 148 named colors such as red, blue and rebeccapurple. Most colors have no English name, so this field shows "-" — use Hex/RGB/HSL instead.

Does this page collect my data?

No. The content is either baked into the HTML at build time or every calculation runs locally in your browser, so your input is never sent to any server. Apart from the footer traffic counters (Baidu Analytics and our self-hosted visitor counter, see the privacy policy), this site collects nothing about your visit.

Related tools & reading

Commentaires

Ce site est uniquement frontal : pas de backend ni de compte. Les commentaires vont sur GitHub Issues, Discussions ou par e-mail.

Collez ceci dans l'issue ou l'e-mail pour m'aider à localiser le problème ; cela n'inclut rien de ce que vous avez saisi

Aussi :Voir les commentaires existants · Commentaires par e-mail (sans compte GitHub) :278975598@qq.com