# Colorspace transformations

**URL:** <https://discourse.radiance-online.org/t/colorspace-transformations/7061>\
**Category:** radiance-general\
**Created:** [October 14, 2026, 7:03pm UTC](https://discourse.radiance-online.org/t/colorspace-transformations/7061 "2026-10-14T19:03:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel\_Jones](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/nathaniel_jones/32/603_2.png) [@Nathaniel\_Jones](https://discourse.radiance-online.org/u/Nathaniel_Jones)\
**Post date:** [October 14, 2026, 7:03pm UTC](https://discourse.radiance-online.org/t/colorspace-transformations/7061/1 "2026-10-14T19:03:22Z")

</div>

I’m trying to calibrate several different monitors such that images rendered on them will match the color of a physical sample under room lighting. As I understand it, this requires that I correct the coloring of the image differently for each monitor, based on the inherent differences between monitors from different manufacturers. I have a physical Macbeth chart and a rendering of one, and the color of the physical chart and the rendering on each monitor is different (see the 7 teal squares below under 3000K lighting).

 ![Screenshot 2026-10-14 145840](https://discourse.radiance-online.org/uploads/default/original/2X/a/afb534f53ab04213ef9fae79835c7869f6104d32.jpeg)

I know that given a photograph, _p_, showing both the physical chart and a screen with the rendered chart, I can use `macbethcal` to select one of the charts and produce a calibrated image, _p’_. I could then repeat this process on _p’_ selecting the other chart to produce an image _p’’_ representing the transform from the color space of the first Macbeth chart to that of the second. However, applying multiple color corrections seems to degrade the image quality, so I’d like to do this in a single pass, preferably without knowledge of the room lighting.

Is there a way to use `macbethcal` where I can input the primaries of one a color chart instead of using the hardcoded values so that I can shift the rendering to match the appearance of the physical chart next to it under arbitrary real-world lighting? Or is there an alternative approach to this?

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [October 14, 2026, 7:26pm UTC](https://discourse.radiance-online.org/t/colorspace-transformations/7061/2 "2026-10-14T19:26:42Z")

</div>

Hi Nathaniel,

Macbethcal is only designed to correct color in the capture direction, not the display direction. It also only works well for scanners, I’ve found.

However, you should be able to set your monitors to use sRGB standard color space and convert to the appropriate primaries using:

```
ra_bmp -g 2.2 -p 0.640 0.330 0.300 0.600, 0.150 0.060 0.3127 0.3290 render.hdr > rgb709.bmp

```

This won’t get you a good match to a room-lit MacBeth chart, however. That’s because the white point of the monitor doesn’t match the white point of your room. Even if your fixture were producing D65 daylight to match the sRGB definition, all that nice wood is going to give things an amber tint. You would need to use a light box on your chart to get anything close to a match, I’m afraid.

If you really want things to match, you can try setting your monitor white point to something very yellow, maybe a CCT around 3000, and see how it looks. Display calibration won’t get you there, otherwise.

Cheers,  
-Greg

---

<div class="post-metadata">

**Author:** ![robertmartin](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/r/ee7513/32.png) [@robertmartin](https://discourse.radiance-online.org/u/robertmartin)\
**Post date:** [November 14, 2026, 6:44pm UTC](https://discourse.radiance-online.org/t/colorspace-transformations/7061/3 "2026-11-14T18:44:42Z")

</div>

Greg’s point about the room white point is the key one. I’d avoid chaining macbethcal passes: it’s a capture-side fit, and each pass adds interpolation/quantization error. Instead, profile each monitor with a colorimeter or spectrophotometer and build an ICC profile or 3D LUT; measure the Macbeth chart under the actual room lighting, then convert measured XYZ to the display profile with absolute colorimetric intent and judge the match. You’ll still need to account for adaptation and simultaneous contrast, so a dim, neutral surround helps. A light box remains the cleanest reference.
