Color Converter
Auto-detect HEX/RGB/HSL input and convert instantly. Copy-ready outputs for CSS.
Input
Any Format
HEX
RGB
HSL
CMYK
HSV
HWB
Preview
Color Code Table
纯红 Red
纯绿 Green
纯蓝 Blue
纯黄 Yellow
青色 Cyan
洋红 Magenta
纯黑 Black
纯白 White
猩红 Crimson
棕色 Brown
橙色 Orange
适中的蓝色 MediumBlue
午夜的蓝色 MidnightBlue
深蓝色 DarkBlue
海军蓝 Navy
皇家蓝 RoyalBlue
矢车菊的蓝色 CornflowerBlue
适中的板岩暗蓝灰 MediumSlateBlue
板岩暗蓝灰 SlateBlue
深岩暗蓝灰 DarkSlateBlue
淡钢蓝 LightSteelBlue
浅石板灰 LightSlateGray
石板灰 SlateGray
紫色 Purple
深洋红 DarkMagenta
深紫罗兰 DarkViolet
深兰花紫 DarkOrchid
靛青 Indigo
深紫罗兰的蓝 BlueViolet
适中的紫色 MediumPurple
适中的兰花紫 MediumOrchid
兰花的紫色 Orchid
紫罗兰 Violet
李子 plum
蓟 Thistle
熏衣草 Lavender
浅粉红 LightPink
粉红 Pink
薰衣草腮红 LavenderBlush
苍白的紫罗兰红 PaleVioletRed
热情的粉红 HotPink
深粉 DeepPink
适中的紫罗兰红 MediumVioletRed
灰色 Gray
幽灵的白 GhostWhite

Common Color Formats

HEX works well for design tokens, RGB is intuitive for primary channels, and HSL is great for adjusting saturation/lightness.

🎨

Key Benefits

  • Auto-detect input format
  • Instant HEX/RGB/HSL outputs
  • Copy-ready for CSS
  • Supports alpha (RGBA/HSLA & 8-digit HEX)
🧩

Supported Formats

  • HEX: #RGB / #RRGGBB / #RRGGBBAA
  • RGB: rgb(r,g,b) / rgba(r,g,b,a)
  • HSL: hsl(h,s%,l%) / hsla(h,s%,l%,a)

Use Cases

  • CSS / design tokens
  • Convert picked colors quickly
  • Adjust via HSL saturation/lightness
  • Handle transparency (alpha)
🔒

Privacy

  • Runs locally in your browser
  • No uploads of input data
  • Refreshing does not retain content

🚀 How to Use

  • Paste a color into “Any Format”
  • Or edit HEX/RGB/HSL directly
  • Copy outputs with one click
  • Preview shows the current color

❓ FAQ

What is 8-digit HEX?
It looks like #RRGGBBAA. The last two digits (AA) represent alpha (00~FF). When alpha < 1, this tool outputs 8-digit HEX.
What do H/S/L mean in HSL?
H is hue (0~360), S is saturation (0%~100%), and L is lightness (0%~100%). It is useful for color adjustments.