ColorToolkits
Format Converter

Hex to Display-P3 Converter

Translate sRGB HEX codes into CSS color(display-p3 r g b) coordinates for modern OLED Apple and mobile screens.

Converted (Display-P3)
color(display-p3 0.2132 0.383 0.889)
#2563EB
Try presets:

How to Use This Tool

  1. Enter or paste your HEX value or choose one of the curated preset swatches.
  2. Copy the formatted Display-P3 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
  • sRGB linear channels map cleanly through XYZ D65 into the wider Display-P3 color space, ready for vibrant wide-gamut CSS progressive enhancement.
  • Instant clipboard feedback with live OKLCH and Display-P3 gamut safety
  • Zero server round-trips—every calculation executes immediately in browser memory

Mapping sRGB Primaries into Wide-Gamut Display-P3

sRGB linear channels map cleanly through XYZ D65 into the wider Display-P3 color space, ready for vibrant wide-gamut CSS progressive enhancement.

Reference Snippet (CSS Color 4 (@supports))

.cta {
  background: #2563eb;
}
@supports (color: color(display-p3 0 0 0)) {
  .cta { background: color(display-p3 0.219 0.382 0.896); }
}

Frequently Asked Questions

More Color Tools

View all tools →