🎨

Color Converter

Convert between HEX, RGB, HSL and more. Pick colors visually.

Advertisement
#8B5CF6
🔷 HEX
🌈 RGB
R 139
G 92
B 246
🎭 HSL
H 258°
S 90%
L 66%
🎨 Color Harmonies
💾 Saved Colors

Click on the preview to save colors

📝 CSS Output
color: #8B5CF6;
background: rgb(139, 92, 246);
border-color: hsl(258, 90%, 66%);
🎨 Popular Colors
Advertisement

📖 Color Formats Explained

HEX Colors

HEX colors use a 6-digit hexadecimal code preceded by #. Each pair represents Red, Green, and Blue values (00-FF). Example: #FF5733

RGB Colors

RGB defines colors using Red, Green, and Blue values from 0-255. Example: rgb(255, 87, 51)

HSL Colors

HSL uses Hue (0-360°), Saturation (0-100%), and Lightness (0-100%). It's more intuitive for adjusting colors. Example: hsl(14, 100%, 60%)

💡 Pro Tip: HSL is great for creating color variations. Keep the same Hue, and adjust Saturation for vibrancy and Lightness for brightness!

❓ Frequently Asked Questions

HEX is most common in web design and is supported everywhere. RGB is useful when you need to adjust individual channels. HSL is best for creating color schemes and variations.

Color harmonies are combinations that look pleasing together. Complementary colors are opposite on the color wheel, analogous colors are neighbors, and triadic colors are evenly spaced.

Ensure sufficient contrast between text and background. WCAG recommends a contrast ratio of at least 4.5:1 for normal text. Darker or lighter versions of colors often work better for accessibility.

Advertisement