Skip to main content

Color Format Converter

Convert any color format to all others instantly.
Enter HEX, RGB, HSL, or named colors and copy any format.

Supports: HEX (#ff6b6b, #f66), RGB (rgb(255, 107, 107)), RGBA, HSL, HSLA, named colors (coral, red, etc.)
0%50%100%
All Formats
HEX
#ff6b6b
RGB
rgb(255, 107, 107)
RGBA
rgba(255, 107, 107, 1)
HSL
hsl(0, 100%, 71%)
HSLA
hsla(0, 100%, 71%, 1)
Tailwind (closest)
red-400
CSS Variable
--color-primary: #ff6b6b;
Red
255
Green
107
Blue
107
Hue
0°
Saturation
100%
Lightness
71%

Supported Color Formats

Input Formats

  • #ff6b6b - HEX (6 digit)
  • #f66 - HEX (3 digit)
  • ff6b6b - HEX without #
  • rgb(255, 107, 107) - RGB
  • rgba(255, 107, 107, 0.5) - RGBA
  • hsl(0, 100%, 71%) - HSL
  • hsla(0, 100%, 71%, 0.5) - HSLA
  • coral - Named colors (147 supported)

Output Formats

  • HEX - Standard web format
  • HEX (short) - When possible (#f66)
  • RGB - rgb() function
  • RGBA - With alpha channel
  • HSL - Hue, saturation, lightness
  • HSLA - With alpha channel
  • Tailwind - Closest Tailwind class
  • CSS Variable - Ready to use