Developer Tools
Free Color Code Converter — HEX, RGB, HSL, CMYK & Color Schemes
Convert colors between all formats instantly. Generate tints, shades, complementary/analogous/triadic color schemes, and check WCAG accessibility contrast ratios.
#6C3AFF
H255°
S100%
L61%
Alpha100%
Nearest CSS color: blueviolet
All Color Formats
HEX
#6C3AFFRGB
rgb(108, 58, 255)RGBA
rgba(108, 58, 255, 1)HSL
hsl(255, 100%, 61%)HSLA
hsla(255, 100%, 61%, 1)HSV
hsv(255, 77%, 100%)CMYK
cmyk(58%, 77%, 0%, 0%)CSS Var
--color-primary: #6C3AFF;WCAG Contrast Checker
White text5.70:1
Black text3.69:1
✓ WCAG AA✗ WCAG AAABest on white background
Custom Contrast Pair
Text
Background
Sample text21.00:1
✓ AA✓ AAA
Tints & Shades
Tints (mixed with white)
Shades (mixed with black)
Color Schemes
#386aff
225°
#6a38ff
255°
#cd38ff
285°
How to Use the Color Code Converter
1
Pick or enter a color
Click the color picker or type any HEX code. All format conversions update instantly.
2
Copy in any format
Hover over any format row and click Copy. Use CSS Var format for design system tokens.
3
Generate tints & shades
Click any swatch to update the main color and build a complete scale for your design system.
4
Check accessibility
The WCAG contrast checker shows whether your color meets AA or AAA standards.
🔧 Related Developer Tools
More free dev tools — no login required
⚡
Unlock PursTech Pro
Unlimited tool usage, zero ads, batch processing and API access — from $5/month.
❓ Frequently Asked Questions
What is the difference between HEX, RGB and HSL color formats?+
HEX (#RRGGBB) represents colors as hexadecimal values for red, green and blue channels. It's the most common format in web development. RGB uses decimal values from 0–255 for each channel and is more readable. HSL (Hue, Saturation, Lightness) represents color as its hue angle (0–360°), saturation (0–100%) and lightness (0–100%). HSL is the most intuitive for humans because adjusting saturation or lightness doesn't require understanding RGB arithmetic.
What is the difference between HSL and HSV?+
Both HSL and HSV use Hue and Saturation, but differ in the third component. HSL uses Lightness — 50% is a pure color, 0% is black and 100% is white. HSV uses Value (Brightness) — 100% is a pure color and 0% is black. HSL is preferred for CSS. HSV is more common in image editing tools like Photoshop because it better matches how artists intuitively think about color.
What is CMYK and when should I use it?+
CMYK (Cyan, Magenta, Yellow, Key/Black) is a subtractive color model used in color printing. Use CMYK for anything physically printed — business cards, brochures, packaging. Web and screen designs use RGB. Note that CMYK has a smaller gamut than RGB, so some bright screen colors cannot be perfectly reproduced in print.
What is WCAG contrast ratio and why does it matter for accessibility?+
WCAG contrast ratio measures how distinct a text color is from its background, on a scale of 1:1 (identical) to 21:1 (black on white). WCAG 2.1 requires Level AA — at least 4.5:1 for normal text and 3:1 for large text. Level AAA — at least 7:1 for normal text. Poor contrast makes text illegible for people with low vision or color blindness — roughly 8% of men have some form of color blindness.
What are tints and shades, and how are they generated?+
A tint is a color mixed with white — increasing HSL lightness toward 100%. A shade is a color mixed with black — decreasing lightness toward 0%. The tool generates 10 tints and 10 shades by incrementally adjusting HSL lightness, giving you a complete palette suitable for design systems and CSS variable sets.