Color Converter

Convert between HEX, RGB, HSL, HSV, and CMYK. Alpha (RGBA) support with WCAG contrast ratio checker.

Last updated: 2026/10/16 Developer Feedback & bug reports
Color Picker
Click to pick a color
Indigo #6366F1
#
Color Codes
HEX #6366F1
RGB rgb(99, 102, 241)
RGBA rgba(99, 102, 241, 1)
HSL hsl(239, 84%, 67%)
HSV hsv(239, 59%, 95%)
CMYK cmyk(59%, 58%, 0%, 5%)
NAME indigo
RGB
HSL
Contrast Ratio
Aa
On White 4.5:1
Aa
On Black 4.5:1
Shades
Lighter
Darker
Related Colors

How to Use

1

Select a color

Use the color picker, HEX input, or sliders to select a color.

2

View conversions

All formats (HEX, RGB, HSL, HSV, CMYK) are converted automatically.

3

Copy and use

Click the copy button next to the format you need.

About This Tool

An essential color code converter for web development and design. Convert between HEX, RGB, HSL, HSV, and CMYK formats with alpha channel support. Check contrast ratios for accessibility compliance.

Features

  • Real-time conversionAll formats update instantly as you adjust.
  • Alpha supportSet transparency with RGBA and HSLA formats.
  • Contrast ratioCheck accessibility against WCAG standards.
  • Related colorsAuto-display complementary, analogous, and shades.

Use Cases

  • Website color design
  • CSS color specification
  • Design tool integration
  • Accessibility checking
  • Color scheme planning

Related Tools & Guides

Once you are comfortable converting color codes, try designing full color schemes. To balance several colors, use the Color Palette Generator; to blend two colors into a midpoint, use the Color Mixer; to build light and dark tones from one color, use the Color Shades Generator. Check text and background readability with the Color Contrast Checker. If you want to learn color notation from the ground up, the guides Basics of HEX and RGB and Understanding HSL color codes are great starting points.

FAQ

What's the difference between HEX, RGB, HSL, and HSV?
HEX uses hexadecimal, RGB uses red/green/blue values, HSL uses hue/saturation/lightness, and HSV uses hue/saturation/value. HSV is commonly used in design software.
What is contrast ratio?
The ratio of luminance between text and background colors. WCAG recommends AA (4.5:1+) and AAA (7:1+) for readable designs.
Where is alpha (transparency) used?
For overlays, hover effects, shadows, and semi-transparent elements. Use RGBA or HSLA format in CSS.
How is the "closest color name" determined?
The current color is compared by RGB distance against the ~140 named CSS colors (such as red, indigo, and tomato), and the nearest match is shown automatically. Because it is an approximation, the named color and your exact HEX may not be identical. Use it as a guide when you want to use a CSS color keyword directly.
Can I do more advanced color schemes and adjustments?
This tool focuses on converting and inspecting a single color. For multi-color scheme design, mixing two colors, or generating tonal shades in bulk, use the related Color Palette Generator, Color Mixer, and Color Shades Generator.