T172 · Web, Data, QR & Developer Tools

Color Converter (HEX ↔ RGB ↔ HSL ↔ CMYK) & WCAG Contrast Checker

कलर कोड कन्वर्टर (HEX, RGB, HSL, CMYK और कंट्रास्ट)

Convert any HEX or RGB color into HEX, RGB, HSL, and Print CMYK, and check its WCAG 2.1 contrast ratio against white (`#FFFFFF`) and dark slate (`#0F172A`) text.

🔒 Browser-Local Only (Zero Server Upload)
Quick Examples:

Calculated Output & Breakdown

Converted Color Models & WCAG Contrast
#1D4ED8 | rgb(29, 78, 216) | hsl(224, 76%, 48%)
HEX
#1D4ED8
RGB
rgb(29, 78, 216)
HSL
hsl(224, 76%, 48%)
Contrast vs White Text
6.7:1 (WCAG AA Pass)
Color Space / CheckValue
HEX Code#1D4ED8
RGBrgb(29, 78, 216)
HSLhsl(224, 76%, 48%)
Print CMYKcmyk(87%, 64%, 0%, 15%)
WCAG Contrast with White (#FFFFFF)6.7:1
WCAG Contrast with Black (#000000)3.13:1
Use white (#FFFFFF) text on this background color for WCAG AA ≥ 4.5:1 readability.

About this tool

Convert a supported colour representation and inspect the displayed text-to-background contrast calculation. Review the actual foreground and background pair used in the design rather than testing a colour in isolation.

Calculations and file processing run in this browser tab. The tool does not send working inputs or files to our hosting server.

हिंदी में जानकारी: कलर कोड कन्वर्टर (HEX, RGB, HSL, CMYK और कंट्रास्ट)

मुख्य इनपुट और नियंत्रण हिंदी में देखने के लिए ऊपर “🇮🇳 हिंदी में देखें” चुनें। गणना और फ़ाइल प्रोसेसिंग इसी ब्राउज़र टैब में होती है; टूल आपके इनपुट हमारी होस्टिंग पर नहीं भेजता।

Features

  • Work with Color HEX Code.
  • Review HEX; RGB; HSL in the result breakdown.

Benefits

  • Compare common colour-code formats.
  • Check a proposed foreground-and-background contrast pair.

Who should use this tool?

  • Designers reviewing interface colours.
  • Developers checking a colour-conversion example.

How to use

  1. Complete the labelled fields for your scenario, including Color HEX Code. Use the units shown beside each field.
  2. Try the example labelled “Royal Blue (#1D4ED8 → rgb(29, 78, 216))” if you want to check the workflow first.
  3. Select Calculate / Run Tool and review Converted Color Models & WCAG Contrast and HEX; RGB.
  4. Check the assumptions and limitations below. Adjust a value to compare scenarios, then copy or download the result you need.

Try these worked examples

ScenarioExample inputsExample result
Royal Blue (#1D4ED8 → rgb(29, 78, 216))Color HEX Code: #1D4ED8#1D4ED8 | rgb(29, 78, 216) | hsl(224, 76%, 48%)
Saffron Orange (#EA580C → rgb(234, 88, 12))Color HEX Code: #EA580C#EA580C | rgb(234, 88, 12) | hsl(21, 90%, 48%)

Reference and processing

W3C CSS Color Module Level 4 & WCAG 2.1 Relative Luminance Formula · Listed applicability: 2025-2026

Calculations and file processing run in this browser tab. The tool does not send working inputs or files to our hosting server.

FAQs

Does one passing contrast pair make the whole page accessible?

Contrast is one part of accessibility. Font size, focus visibility, control boundaries, state changes and other page content also need appropriate review and testing.

Which inputs do I need for Color Converter (HEX ↔ RGB ↔ HSL ↔ CMYK) & WCAG Contrast Checker?

Use Color HEX Code. The built-in examples show how those fields fit together.

What should I check before using this result?

Accepts 6-digit `#RRGGBB` or 3-digit `#RGB` hex codes. Check the assumptions and output against your intended task before relying on the result.

What happens to the information I enter?

Calculations and file processing run in this browser tab. The tool does not send working inputs or files to our hosting server. Tool favourites save only tool IDs in this browser. Sharing sends the tool link, not your working values or files.

Share this tool

Send someone a shortcut to Color Converter (HEX ↔ RGB ↔ HSL ↔ CMYK) & WCAG Contrast Checker. Only the tool link is shared.

Useful next steps for this task.

An editorial selection for everyday tasks.

A useful link, ready to send

Share on social media

Color Converter (HEX ↔ RGB ↔ HSL ↔ CMYK) & WCAG Contrast Checker

Only this tool’s link is included. Your inputs and files stay out of the share.

You choose the recipient and confirm the post in the app you open.

Help make this tool better

Feedback about this tool

Color Converter (HEX ↔ RGB ↔ HSL ↔ CMYK) & WCAG Contrast Checker T172

Found a problem or have a suggestion? Open an email draft with this tool’s name and link. Add your feedback and choose Send in your email app.

To: ecomtoolkitindia@gmail.com. Tool inputs, files and browser details are not added automatically.