ColorToolkits
Format Converter

CMYK to Hex Converter

Convert Cyan, Magenta, Yellow, and Key (Black) percentages into browser HEX codes quickly.

Converted (HEX)
#25aee8
#25AEE8
Try presets:

How to Use This Tool

  1. Enter or paste your CMYK value or choose one of the curated preset swatches.
  2. Copy the formatted HEX value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
  3. Click into Tailwind Scale Generator or Contrast Checker to validate accessibility on the converted shade.

Key Features

  • Bidirectional parsing supporting CSS Color Level 4 syntax cleanly
  • Red = 255 * (1 - C) * (1 - K), and identically for Green (with M) and Blue (with Y), rounded to the closest 8-bit hex string.
  • Instant clipboard feedback with live OKLCH and Display-P3 gamut safety
  • Zero server round-trips—every calculation executes immediately in browser memory

Uncalibrated CMYK to RGB math

Red = 255 * (1 - C) * (1 - K), and identically for Green (with M) and Blue (with Y), rounded to the closest 8-bit hex string.

Reference Snippet (JavaScript)

const r = Math.round(255 * (1 - c) * (1 - k));
const g = Math.round(255 * (1 - m) * (1 - k));
const b = Math.round(255 * (1 - y) * (1 - k));

Frequently Asked Questions

More Color Tools

View all tools →