Have you noticed that AI-generated images can be easy to spot because they have a subtle yellow tint? This yellow hue is not a specific feature of all AI image generators; it’s actually very specific to one of them: ChatGPT.

For some reason, ChatGPT defaults to generating its images with a slight yellow tint. You don’t notice it at first, but the more images you generate, the more you will start to notice that they often have a sepia or yellow hue. Not only is it distracting, but it takes away from the realism of the image and makes it look dated.

You may like

Linkpharm) into ChatGPT and ask it to run it on an image after you’ve created it.

You may like

import cv2
import numpy as np

def neutralize_yellow(image):
“””
Takes a BGR image (NumPy array) and reduces yellow tint to make colors more neutral.
Returns a new neutralized image.
“””
# Convert to LAB color space (L = lightness, A = green–red, B = blue–yellow)
lab = cv2.cvtColor(image, cv2.COLOR_BGR2LAB)

# Split into channels
L, A, B = cv2.split(lab)

# Compute how much yellow there is (positive shift in B channel)
yellow_strength = np.mean(B) – 128 # 128 = neutral midpoint

# Reduce yellow by shifting B channel toward neutral (128)
if yellow_strength > 0:
correction = np.clip(B – yellow_strength * 0.8, 0, 255)
lab = cv2.merge((L, A, correction))
else:
lab = cv2.merge((L, A, B))

# Convert back to BGR
neutral_img = cv2.cvtColor(lab, cv2.COLOR_LAB2BGR)

return neutral_img

# Example use from another script:
# from remove_yellow_tint import neutralize_yellow
# neutral_image = neutralize_yellow(image_from_other_script)

ChatGPT will have no problem running the Python script, and it will leave the image exactly as before, just color-correct it within ChatGPT.

Here’s an example of a before-and-after using the Python script:

ChatGPT images

The original on the left, and the color-corrected version on the right. (Image credit: OpenAI)

It’s quite possible that future versions of ChatGPT won’t have this yellow cast when generating images, but until then, there is something you can do about it. Or you could check out the rather excellent Nano Banana image generator that comes as part of Gemini.

Follow TechRadar on Google News and add us as a preferred source to get our expert news, reviews, and opinion in your feeds. Make sure to click the Follow button!

And of course you can also follow TechRadar on TikTok for news, reviews, unboxings in video form, and get regular updates from us on WhatsApp too.

Purple circle with the words Best business laptops in white

The best business laptops for all budgets

Our top picks, based on real-world testing and comparisons