Color Converter
Convert units with the Color Converter — enter a value and get accurate converted results instantly using verified formulas.
Formula
HEX = #RRGGBB where each pair is base-16 (00-FF)
Each color format represents the same color differently. HEX uses hexadecimal, RGB uses decimal 0-255, HSL uses hue angle and percentages, CMYK uses ink percentages for printing.
Worked Examples
Example 1: Convert HEX to RGB
Problem:Convert the hex color #3B82F6 (blue) to RGB format.
Solution:HEX #3B82F6: 3B = 59 (3×16 + 11 = 59) 82 = 130 (8×16 + 2 = 130) F6 = 246 (15×16 + 6 = 246) Result: rgb(59, 130, 246)
Result:rgb(59, 130, 246)
Example 2: Create a Darker Shade
Problem:Make a color 30% darker using HSL.
Solution:Original: hsl(210, 90%, 55%) To darken, reduce Lightness by 30%: 55% - 30% = 25% Result: hsl(210, 90%, 25%) Keep hue and saturation, only adjust lightness for consistent shade variations.
Result:hsl(210, 90%, 25%)
Example 3: RGB to CMYK for Print
Problem:Convert rgb(255, 128, 0) orange to CMYK for printing.
Solution:RGB: R=255, G=128, B=0 Step 1: Normalize to 0-1 R'=1, G'=0.502, B'=0 Step 2: Find K (black) K = 1 - max(R',G',B') = 1 - 1 = 0 Step 3: Calculate CMY C = (1-R'-K)/(1-K) = 0% M = (1-G'-K)/(1-K) = 50% Y = (1-B'-K)/(1-K) = 100%
Result:cmyk(0%, 50%, 100%, 0%)
Frequently Asked Questions
What is HEX color format?
HEX (hexadecimal) color uses a 6-digit code with numbers 0-9 and letters A-F. It starts with # and represents Red, Green, Blue values (2 digits each). For example, #FF0000 is pure red (FF=255 red, 00=0 green, 00=0 blue). HEX is the most common format for web design and CSS.
What is the difference between RGB and RGBA?
RGB represents colors using Red, Green, Blue values from 0-255. RGBA adds an Alpha channel (0-1) for transparency. rgb(255, 0, 0) is solid red, while rgba(255, 0, 0, 0.5) is 50% transparent red. Use RGBA when you need transparency effects.
How do I find complementary colors?
Complementary colors are opposite on the color wheel. In HSL, add 180° to the hue. If your color is hsl(200, 80%, 50%), the complement is hsl(20, 80%, 50%). Complementary colors create high contrast and visual interest.
What's the difference between HSL and HSV/HSB?
HSL uses Lightness (0% = black, 100% = white, 50% = pure color). HSV/HSB uses Value/Brightness (0% = black, 100% = pure color). HSL is often more intuitive for web design. Many design tools use HSB. Both describe the same colors differently.
How do I make colors accessible?
Ensure sufficient contrast ratio: 4.5:1 for normal text, 3:1 for large text (WCAG 2.1). Use tools to check contrast. Avoid color as the only indicator. Consider colorblind users (8% of males). Test with grayscale to check visual hierarchy.
Why do printed colors look different than on screen?
Screens emit light (RGB) while print reflects light (CMYK). Some RGB colors can't be reproduced in print (out of gamut), especially bright neons. Monitors vary in calibration. Paper texture and type affect color. Always print proofs before final production.
What is a Web Safe Color?
Web Safe colors are a set of 216 colors that were guaranteed to display correctly on 8-bit monitors (256 colors) in the 1990s. They are formed by combining 00, 33, 66, 99, CC, FF pairs. While less relevant today with modern displays, they are part of web history.