Color Converter (HEX, RGB, HSL, HSV, CMYK)
Paste any color code and get every other format, plus a WCAG contrast check.
- Runs in your browser — nothing uploaded
- Instant, no waiting in a queue
- Free, no watermark, no daily limits
Enter a color as HEX (3, 4, 6 or 8 digits), rgb() or rgba(), hsl() or hsla(), hsv(), or a CSS color name such as tomato, or pick one with the color picker. You instantly get HEX, RGB, HSL, HSV/HSB and CMYK values ready to copy; HEX, RGB and HSL include alpha where present. The preview shows the WCAG 2.1 contrast ratio of the color on white and on black, with an AA/AAA rating, and suggests whether white or black text reads better on it. CMYK values are a simple mathematical conversion, not a color-managed print profile.
How to Convert HEX to RGB
- 1
Enter a color
Type or paste a color code or name, or click the swatch to pick one.
- 2
Copy a format
Copy the HEX, RGB, HSL, HSV or CMYK value you need.
- 3
Check contrast
Use the preview to see whether the color passes WCAG contrast on white or black.
Why use ToolzBank Color Converter?
- HEX, RGB, HSL, HSV/HSB and CMYK
- Alpha transparency (8-digit HEX, rgba, hsla)
- CSS color names like “rebeccapurple”
- Built-in color picker
- WCAG 2.1 contrast ratio on white and black
- Best text color suggestion
Frequently asked questions
How do I convert HEX to RGB?
What is the difference between HSL and HSV?
Are the CMYK values print-accurate?
What contrast ratio do I need?
Is it free?
More free developer tools
JSON Formatter & Validator
Beautify, minify & validate JSON
JSON to CSV
Flatten JSON arrays into CSV/Excel
XML Formatter
Pretty-print & validate XML
JWT Decoder
Decode & verify JSON Web Tokens locally
Regex Tester
Test regular expressions live
Timestamp Converter
Unix epoch ⇄ human-readable dates
Diff Checker
Compare two texts line by line
Base64 Encoder / Decoder
Encode & decode Base64 text and files
URL Encoder / Decoder
Percent-encode, decode & parse URLs
HTML, CSS & JS Formatter
Beautify HTML, CSS & JS; minify HTML & CSS
Hash Generator
MD5, SHA-1, SHA-256 & SHA-512 for text or files
Number Base Converter
Binary, octal, decimal & hex conversion
PX to REM Converter
Convert px ⇄ rem, or a whole stylesheet
YAML to JSON Converter
Convert YAML ⇄ JSON with error lines
SQL Formatter
Beautify SQL for MySQL, PostgreSQL & more
Markdown Editor
Write visually, download a .md file
From Our Blog
How to Generate a Color Shade Scale for Consistent UI Design
Why modern design systems use numbered color scales (100–900) instead of one flat color, and how to generate a full shade range from a single starting color.
How to Generate a Matching Color Combination for Your Design
Picking colors that work together is harder than picking one good color. Here's how a color combination generator gives you ready-made pairings to start from.
How Color Codes Work and How to Generate Perfect Palettes
HEX codes, RGB values, HSL — colors in design have multiple formats. Here is how they all relate and how to generate harmonious color palettes.
