sRGB
gamma 2.2 · how colors are authoredLinear
gamma 1.0 · what lighting usesFormula for each channel, C = value ÷ 255: if C ≤ 0.04045, C ÷ 12.92; otherwise ((C + 0.055) ÷ 1.055)2.4



Convert hex codes and RGB values between sRGB and Linear color spaces. Enter a value on either side to see its equivalent, copy the result, and view the conversion math for PBR, shaders, lighting, and 3D workflows.

Formula for each channel, C = value ÷ 255: if C ≤ 0.04045, C ÷ 12.92; otherwise ((C + 0.055) ÷ 1.055)2.4
Type a hex code or an RGB value on the sRGB side (#195FDD, 25 95 221 or 0.1 0.37 0.87) or linear values on the Linear side; the other side updates.
Use sRGB for base color (albedo) textures, hex codes and color pickers. Use Linear in shader code, for light colors and in the color fields of Unreal Engine and Blender.
Roughness, metallic, normal and ambient occlusion maps are already linear data: import them with sRGB off ("Non-Color" in Blender) and don't convert them.
Convert numeric color values between sRGB and Linear color spaces for PBR materials, shaders, lighting and other 3D workflows. Enter a hex code or RGB value in sRGB, or enter linear RGB values, and the converter calculates the corresponding values in the other color space.
sRGB is designed around how colors are stored and displayed, while rendering and shader calculations generally operate on linear values. Because the relationship between the two spaces is not one-to-one, an sRGB value cannot simply be divided by 255 and used as its linear equivalent. The converter applies the sRGB transfer function and can show the calculation used for the selected color.
Use the converter when you have a color defined as a hex code, RGB value or color-picker value and need its linear equivalent for a shader, script, material parameter or other workflow that expects linear RGB values. You can also enter linear values to find the corresponding sRGB color.
Use the converter when a shader, material control, script or rendering workflow expects a numeric color value in a different color space than the one you currently have. It is especially useful when transferring colors between image editors, 3D applications, shader code and material systems that represent the same color differently.
For texture-based workflows, base color and albedo maps are commonly treated as sRGB color data, while maps such as roughness, metallic, normal and ambient occlusion are typically handled as non-color data by the 3D application.
The converter can help when transferring color values between image editors, material editors, shader code and 3D applications that expose values in different color spaces. Seeing both representations side by side makes it easier to confirm which numeric value should be entered without estimating the conversion manually.
Our online Color Space Converter, along with all of our creator tools, is completely free to use. Enjoy a user-friendly, ad-free environment to enhance your 3D workflow instantly—with no account, sign-up, or login required.