# Colors in VTK have no declared color space, with consequences throughout the codebase

**URL:** https://discourse.vtk.org/t/colors-in-vtk-have-no-declared-color-space-with-consequences-throughout-the-codebase/16503
**Category:** Development
**Created:** [August 3, 2026, 8:17pm UTC](https://discourse.vtk.org/t/colors-in-vtk-have-no-declared-color-space-with-consequences-throughout-the-codebase/16503 "2026-08-03T20:17:34Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![LucasGandel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lucasgandel/32/1831_2.png) [@LucasGandel](https://discourse.vtk.org/u/LucasGandel)
#### Post date: [August 4, 2026, 3:26pm UTC](https://discourse.vtk.org/t/colors-in-vtk-have-no-declared-color-space-with-consequences-throughout-the-codebase/16503/3 "2026-08-04T15:26:53Z")

</div>

Thanks for looking into this. I agree sRGB/Linear conversion is not handled everywhere it should. I’m mostly unavailable for the new 3 weeks so just sharing some thoughts here for now:

- sRGB/Linear color spaces is not a concept every developer has in mind, people often copy and adapt existing code. Unifying existing conversion with a common API and clear comments about why it’s required would highlight places where it’s needed and potentially reduce occurrence of new code missing conversion.
- Have you looked into the influence of the ` vtkRenderWindow::UseSRGBColorSpace` flag? Could it be used to hide the fix as you suggest?
- Referencing [this post](https://discourse.vtk.org/t/color-space-of-rgb-values-in-vtkproperty/16088/2) from @sankhesh

---

_[View the full topic](https://discourse.vtk.org/t/colors-in-vtk-have-no-declared-color-space-with-consequences-throughout-the-codebase/16503)._
