ToolsColor ConvertersRGB to XYZ Converter
Color translation utility for interface systems, design handoff, and production workflows

Instantly convert RGB to XYZ and XYZ to RGB.

Convert RGB color values to the XYZ color model. This page follows the same polished product structure as the CSS converter tools while adapting the live experience to real color previews, format channels, and production-ready output.

Converter
Keep the base color on top, swap directions in one click, and convert between RGB and XYZ in real time.

Base color

Use the shared live preview as the anchor point for both color formats.

Live preview

Shared source for every active conversion field on this page.

#0F172Argb(15, 23, 42)hsl(222.2, 47.4%, 11.2%)

Conversion

Edit either side, copy any result, or swap the displayed direction.

RGB

XYZ

#0F172A

rgb(15, 23, 42)

#0F172A

xyz(0.921, 0.881, 2.312)

Canonical page shared by this workflow: RGB to XYZ. The reverse direction is still available in the same interface via the swap control.

Current color spectrum

A responsive tonal strip generated from the active color preview.

rgb(15, 23, 42) -> xyz(0.921, 0.881, 2.312)

#CFD1D4

#93979F

#0F172A

#0B1120

#080C15

Live summary
Useful context while moving between screen color formats, print workflows, and color science representations.

Current conversion

rgb(15, 23, 42)

xyz(0.921, 0.881, 2.312)

Live swatch

#0F172A

rgb(15, 23, 42)

Fast handoff formats

#0F172A

rgb(15, 23, 42)

hsl(222.2, 47.4%, 11.2%)

Why this matters

Translate one live color between engineering, design, print, and video-friendly models without losing track of its visual appearance.

How to Convert RGB to XYZ
Canonical guidance that also applies to the reverse conversion inside the same page.

Step 1: Define the source format precisely

Enter the source color using the channels of RGB. The tool keeps the live preview synchronized so you can validate the color visually while editing the numeric or textual values.

Step 2: Normalize the color through the internal RGB preview

Every supported format is normalized into a single live screen preview. That shared representation keeps the conversion stable while preserving the same visual color across both sides of the interface.

rgb(15, 23, 42)

Step 3: Read the target format and copy the output

Once the live preview is resolved, the target format updates immediately. Copy the generated value directly into your design tool, frontend codebase, or production handoff documentation.

xyz(0.921, 0.881, 2.312)
Common RGB to XYZ Reference
A quick reference table based on a curated palette of common sample colors.
PreviewRGBXYZ
#0F172A
rgb(15, 23, 42)xyz(0.921, 0.881, 2.312)
#2563EB
rgb(37, 99, 235)xyz(20.215, 15.313, 80.471)
#7C3AED
rgb(124, 58, 237)xyz(25.107, 13.425, 81.373)
#10B981
rgb(16, 185, 129)xyz(21.523, 36.39, 26.654)
#F59E0B
rgb(245, 158, 11)xyz(49.948, 43.895, 6.159)
#EF4444
rgb(239, 68, 68)xyz(38.711, 22.908, 7.851)
RGB to XYZ Converter Information
Background notes for design systems, visual QA, color science, and frontend implementation.

Understanding RGB

RGB is the native additive color model for screens. It is useful for UI engineering, browser rendering, and bridging between perceptual and device-oriented color formats.

Understanding XYZ

XYZ is a foundational device-independent color model often used as an intermediate step for color science, format translation, and accurate gamut-aware workflows.

Why convert RGB and XYZ?

  • Design consistency: Keep one visual color aligned across UI mockups, code, and production deliverables.
  • Workflow translation: Move between web-native, print-oriented, and color-science formats without manually rebuilding the color each time.
  • Cleaner handoff: Give design, brand, and engineering teams the exact representation they need for the same color decision.