HI Tom, Thanks so much for the help! I'm glad you are also puzzled by the 1.25 rather than 1.0 ambient intensity, but now that it is known its an easy adjustment. I find that when I am emphasizing colormaps rendered on surfaces (e.g. coulombic), the flat mode really pops and lets the viewer focus on the distribution of color rather than the visual noise that comes with the shadows and highlights in a more faithful 3D rendering. And my advisor is a real stickler for "harmonious" colorschemes in our papers so I'm sure she will eventually want the colors to match up a bit better to the rest of the paper... Cheers, Andrew On Thu, Mar 5, 2026 at 9:48 PM Tom Goddard <goddard@sonic.net> wrote:
Hi Andrew,
I think the difference in brightness of the colors shown in ChimeraX compared to the RGB hex code you are using is because of lighting, not colorspace. Even in flat lighting there is an "ambient intensity" lighting setting which is set to 1.4. You can see the lighting settings with the ChimeraX lighting command
lighting Intensity: 0 Direction: 0.577,-0.577,-0.577 Color: 100,100,100 Fill intensity: 0 Fill direction: -0.2,-0.2,-0.959 Fill color: 100,100,100 Ambient intensity: 1.45 Ambient color: 100,100,100 Depth cue: 1, start 0.5, end 1, color 0,0,0 Shadow: False (depth map size 2048, depth bias 0.005) Multishadows: 0 (max 1024, depth map size 1024, depth bias 0.01)
When I change the ambient intensity to 1.25 after setting flat lighting
light flat light ambientintensity 1.25
I get exactly the same hex code color in ChimeraX as I used in my color command as reported on a Mac using /Applications/Utilities/Digital Color Meter. I expected the matching ambient intensity value to be 1.0, but for some reason it is 1.25.
I'm not sure why you need this. ChimeraX is for 3D rendering and lighting is critical to getting a good 3D appearance, so the intensity of colors varies based on the angle of surfaces to the view direction, specular highlights, shadows, .... It is a rare case where you want to use flat lighting.
Tom
On Mar 5, 2026, at 11:10 AM, Andrew Kennard via ChimeraX-users < chimerax-users@cgl.ucsf.edu> wrote:
When I color models using hex codes of colors I would like, they are noticeably brighter than the colors I am trying to specify with RGB hex codes. I am selecting colors based on the rest of my figure (which is being built in the sRGB colorspace/color gamut in Adobe Illustrator). I realize that the lighting settings in ChimeraX can change apparent colors, so I am using the "Flat" rendering mode to hopefully minimize that effect.
But when I take a hex code I have selected in Illustrator and try to color the model with that hex code, the result is generally brighter than the color I specified.
I suspect this is a mismatch in color gamut, but maybe it is still due to lighting? Is there a way to modulate the lighting in such a way that I can try to recover the colors I intend?
Thanks!
Andrew _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.cgl.u...