Use the same approach as interface does by using default view which is supposed to be invertible to convert color from display space to scene linear.
Use the same approach as interface does by using default view which is supposed to be invertible to convert color from display space to scene linear.