No Signup Required

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. 1

    Enter a color

    Type or paste a color code or name, or click the swatch to pick one.

  2. 2

    Copy a format

    Copy the HEX, RGB, HSL, HSV or CMYK value you need.

  3. 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?
Split the six-digit HEX code into three pairs and convert each from hexadecimal to decimal — #4564B5 is rgb(69, 100, 181). Paste the HEX code and copy the RGB value.
What is the difference between HSL and HSV?
Both describe hue and saturation, but HSL uses lightness (50% is the pure color, 100% is white) while HSV/HSB uses value or brightness (100% is the brightest version of the color). Design tools like Photoshop and Figma often show HSB.
Are the CMYK values print-accurate?
They are a standard mathematical conversion from RGB. Exact print colors depend on the printer’s color profile, so confirm critical brand colors with your printer.
What contrast ratio do I need?
WCAG 2.1 AA requires at least 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 for normal text.
Is it free?
Yes. It is completely free, with no signup, no watermark and no usage limit.

More free developer tools