To make yellow with RGB, set the red and green channels to their maximum and the blue channel to zero. On the common 0–255 scale, pure digital yellow is rgb(255, 255, 0), also written as the hex color #FFFF00. This guide shows how to enter that value in a color picker or code, adjust it to create other yellows, and check why the color may look different on your screen.
RGB describes how red, green, and blue light combine on screens. It is an additive color model: adding more light makes a color brighter, and red light mixed with green light produces yellow. This is different from mixing paint or ink, which uses pigments and behaves according to a subtractive color model.
What You’ll Need
- A device or app with an RGB color picker, such as a graphics editor, presentation tool, design app, or code editor.
- A place to enter color values, or a color picker that lets you adjust red, green, and blue separately.
- The RGB value for the shade you want. For pure yellow, start with red 255, green 255, and blue 0 on a 0–255 scale.
- Optional: a screen with brightness and color settings you can check if the result looks unexpectedly tinted or dull.
You do not need special equipment to calculate the color. If you are only checking a value, any basic RGB color picker or a browser that can display a CSS color will do.
Step-by-Step
-
Open a color picker or color settings panel. Create or select a color swatch in your app, then open its detailed color controls. Look for fields labeled R, G, and B, or a single field that accepts an RGB value or a hex code. Some tools initially show controls for HSL, CMYK, or another model; switch the picker to RGB if needed.
-
Check which number scale the picker uses. Most RGB controls use whole numbers from 0 to 255. In that format, 0 means a channel contributes no light and 255 means it contributes the greatest amount. Some web tools use percentages, decimal values from 0 to 1, or a color wheel instead. Confirm the format before entering numbers so you do not confuse a maximum value with a percentage or decimal.
-
Set red to its maximum. For an 8-bit, 0–255 picker, enter
255in the red field. Red is one of the two light channels needed for yellow. If your picker uses a 0–1 scale, enter1; if it uses percentages, enter100%. -
Set green to its maximum. Enter
255for green on the 0–255 scale, or the equivalent maximum in your tool. Combining full red with full green gives the brightest standard yellow in RGB. Do not lower either channel if you want the pure, fully bright version. -
Set blue to zero. Enter
0in the blue field. Blue light shifts the mixture away from pure yellow, so keeping it at zero gives the familiar vivid yellow. The completed value should readR: 255, G: 255, B: 0. -
Apply the value and inspect the swatch. Confirm the change, add the color to a palette, or apply it to the object, text, or background you are coloring. If your tool accepts CSS syntax, you can enter
rgb(255, 255, 0). If it accepts hexadecimal notation, use#FFFF00; the two forms represent the same RGB color. -
Adjust the shade only if you want a different yellow. To make the yellow less intense, reduce red and green by similar amounts while leaving blue at zero. For example,
rgb(220, 220, 0)is a darker, muted yellow than the maximum-value version. To make a warmer, more orange yellow, raise red relative to green. To make it appear greener, raise green relative to red. Change one or two values at a time and compare swatches so you can see what each adjustment does. -
Save or copy the exact color code. Record the RGB or hex value if you need to reuse the same yellow elsewhere. Copying the code is more reliable than trying to recreate the shade by eye, especially when matching buttons, illustrations, or multiple slides. If the app converts colors when exporting, check the saved file in the intended destination as well.
Common Mistakes
Adding blue by accident. A value such as rgb(255, 255, 20) is not pure yellow. Even a small blue contribution changes the mixture, often making it look paler or less saturated. Recheck all three fields rather than relying on the color preview alone.
Using the wrong scale. Entering 255 into a tool that expects values from 0 to 1 may be rejected, clipped, or interpreted unexpectedly. Conversely, entering 1 in a 0–255 field gives only a tiny amount of red or green. Look for labels, examples, or a format menu before typing.
Confusing RGB with paint mixing. The RGB recipe describes light from a screen, not physical pigments. Mixing red and green paint will not reliably produce the same vivid yellow. For paint, use a suitable yellow pigment or follow the pigment manufacturer’s mixing guidance.
Assuming every display shows the same yellow. A color value can be correct while different screens make it look warmer, cooler, brighter, or duller. Display calibration, brightness, night-light settings, color profiles, and ambient lighting all affect what you see. Do not change the RGB numbers immediately if the value is already correct.
Editing only one channel without a goal. Lowering red while leaving green at full strength shifts the color toward green; lowering green shifts it toward red. This can be useful for tuning, but it is not a neutral way to darken yellow. For a darker, less luminous yellow, lower both red and green together and preview the result.
Tips
- Keep a reference swatch. Save pure yellow as
rgb(255, 255, 0)or#FFFF00before experimenting. You can return to the original instead of trying to remember the values. - Make small, controlled changes. Try reducing both red and green by 10 or 20 points, preview the swatch, and continue only if needed. Small steps make it easier to find a usable shade without losing track of the original recipe.
- Use a color picker for visual adjustments, then read the numbers. A picker can be convenient for exploring warmer or more muted yellows. Once the appearance is right, note its RGB or hex value so you can reproduce it accurately.
- Check contrast when yellow carries text or meaning. Bright yellow can be difficult to read as small text, particularly on a white background. Test the actual foreground and background together, and consider using a darker text color or a deeper yellow for important labels.
- Preview at the size and brightness people will use. A large swatch on a bright monitor may look different from a small icon on a phone. Review the color in context rather than judging it only in the picker.
Troubleshooting
The color looks orange. First confirm that green is at its maximum and that blue is zero. If the values are correct, check whether you deliberately lowered green while increasing red to create a warmer shade. Restore both red and green to 255 for the standard pure yellow, then compare again.
The color looks lime or yellow-green. Check that red is as high as green. A lower red value makes green more dominant and pushes the appearance toward chartreuse. For the basic yellow, set both channels to 255; for a slightly greener yellow, make any reduction to red small and intentional.
The swatch looks pale or washed out. Verify that neither red nor green has been reduced and that blue is exactly zero. Then check screen brightness, a night-light or blue-light filter, and the app’s color profile or preview mode. If possible, compare the code in another color picker or on another display before deciding the RGB value is wrong.
The app will not accept the numbers. Look for the expected syntax and scale. A field might require three separate channel values, a comma-separated form such as 255, 255, 0, CSS syntax such as rgb(255, 255, 0), or a hex value such as #FFFF00. Remove extra symbols if the field accepts digits only, and make sure each channel stays within its allowed range.
The saved image changes color. Check whether the export format, color profile, or destination app converts the color. For web graphics, keep the RGB value and inspect the exported file in a browser. For print, remember that print workflows often convert RGB to CMYK, and a screen’s bright yellow may not be reproducible exactly with ink. Ask for a print proof if color matching is important.
Frequently Asked Questions
What is the RGB code for yellow?
Pure standard yellow is rgb(255, 255, 0) on the common 0–255 scale. Its hexadecimal equivalent is #FFFF00.
Why do red and green make yellow in RGB?
RGB models colored light. When red and green light are combined at full strength with no blue light, the result is perceived as yellow. This additive mixture is why RGB behaves differently from paint and ink.
Can I make yellow with RGB values if my app uses percentages?
Yes. Use 100% red, 100% green, and 0% blue. If the controls use decimals from 0 to 1, use 1, 1, and 0. The scale changes the notation, not the intended color.
How do I make a darker yellow in RGB?
Lower red and green together while keeping blue at zero, then preview the result. For instance, rgb(200, 200, 0) is darker than the maximum-value yellow. It may also look less luminous, because the screen is emitting less red and green light.
How do I make a warmer or cooler yellow?
For a warmer, more orange yellow, make red slightly higher than green. For a greener or cooler-looking yellow, make green slightly higher than red. There is no single correct adjustment; change the values in small increments and save the exact code you prefer.
Will this RGB yellow look the same in print?
Not necessarily. RGB is designed for emitted light on screens, while printers use ink and usually work through a CMYK process. Conversion can reduce the brightness or alter the shade, so check a proof or consult the print provider when an exact match matters.