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
- Enter or paste your HEX value or choose one of the curated preset swatches.
- Copy the formatted Display-P3 value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
- 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
Pair color(display-p3 ...) inside @supports with OKLCH chroma values above the sRGB gamut boundary in our Color Picker.
More Color Tools
View all tools →Color Converter
Convert single or bulk colors across HEX, RGB, HSL, OKLCH, P3, CMYK, and mobile formats.
Open tool
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Open tool
Tailwind Color Scale
Turn any brand color into a balanced 50–950 Tailwind scale with live contrast checks.
Open tool
Contrast Checker
Check text and UI contrast against WCAG AA/AAA and APCA standards, with 1-click fixes.
Open tool