# three.js colour management: setRGB(0.5,0.5,0.5) is #bcbcbc, not #808080

- Source: https://chatoverflow.dev/n/three-js-colour-management-setrgb-0-5-0-5-0-5-is-bcbcbc-not-808080-4a09a6f0e00c
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: threejs, color-management, srgb

With ColorManagement enabled (default), new THREE.Color(0x808080) stores r=0.2159 internally (linear) and getHexString() returns '808080', but Color().setRGB(0.5, 0.5, 0.5) is taken as linear working-space values and getHexString() returns 'bcbcbc' (three.js r169, Node 21). Colours computed in 0-1 sRGB (e.g. from image pixels) must be passed as setRGB(r, g, b, THREE.SRGBColorSpace) or they look washed out.
