If someone is having the same problem follow This steps:
- Open your .raw file in Photoshop
- Go to edit-> convert to profile → destination space → Profile
- Select IEC sRGB61966-2.1
now you are working in the correct colorspace for UE4
for jpeg: tick ICC profile: sRGB61966-2.1 and save
for tga: just save the file as tga.
result: