Yellow is the brightest hue on screen: pure #FFFF00 has a WCAG relative luminance of 0.93, which gives it a contrast ratio of only 1.07:1 against white. That single fact governs how every yellow palette has to be built. Take the HEX codes from a scheme below, or build a custom yellow palette around any base colour with the generator.
Yellow Palette Ideas & HEX Codes
Golden Yellow holds full saturation and near-constant lightness, 50%–52%, moving almost entirely in hue from 37° to 55° — which is why it reads as one colour. Soft Yellow is the tint ramp up to #FFFBE6. Warm Mustard is the only set with a dark end, #664D00, and therefore the only one you can set text on.
Golden Yellow
#FFEA00
#FFD60A
#FFC300
#FFB700
#FF9E00
Soft Yellow
#FFFBE6
#FFF3B0
#FFE666
#FFD93D
#FFC300
Warm Mustard
#664D00
#997A00
#CCAA00
#FFD500
#FFE666
Anchored to a yellow base — press Space or Generate to roll more schemes. Click a swatch to copy its HEX, lock one to keep it while the rest re-roll, then export as CSS, JSON or HEX.
Free, no sign-up Generated in your browser CSS, JSON & HEX export
Drag in the colour area or the hue bar, or type a HEX / RGB value, then build a scheme anchored to it.
What Goes With Yellow
Yellow always needs a dark partner, because it cannot carry text and cannot sit on white — charcoal, black or a deep navy are the usual choices, and purple is its direct complement. Food, energy, warning states and children’s brands use it. Gold and mustard are the same hue held darker.
Frequently Asked Questions
What HEX codes make a yellow palette?
Yellow palettes need care because pure yellow is very light: pair a golden mid tone (#FFC300, #FFD60A) with a deeper ochre anchor (#997A00 or #CCAA00) for contrast and soft pale tints (#FFF3B0) for backgrounds. The darker step is what makes yellow usable for text and structure. Above you get three ready-made versions — Golden Yellow, Soft Yellow and Warm Mustard — so you can lift a whole five-step ramp instead of assembling one. #664D00 is the darkest code on the page and #FFFBE6 the lightest, a pairing worth 7.6:1, enough for body text at any size under WCAG AA and AAA.
Why is yellow so hard to use for text?
Yellow is hard to read as text because it is almost as light as white. #FFFF00 has a WCAG relative luminance of 0.93 against white’s 1.0, a contrast ratio of 1.07:1 — far below the 4.5:1 that WCAG AA requires for body text. #FFC300 is only 1.6:1. A yellow dark enough to work is #664D00, at about 8:1, and by then it is really a brown.
How do I use these colours in CSS?
Click Copy CSS for a ready-to-paste :root block with each colour as a custom property (--color-1, --color-2 and so on), or copy a single HEX straight from any swatch above. The Soft Yellow row above is a second ready-made option — #FFFBE6, #FFC300 and the three steps between them — if you would rather not generate at all. The generator itself rolls around #FFC300, the base yellow for this page. Use Copy JSON for an array or Copy HEX for a comma-separated line if custom properties are not how your project stores colour.
What are the RGB and HSL values for yellow?
The base yellow this page is anchored to is #FFC300, which is rgb(255, 195, 0) and hsl(46, 100%, 50%). A hue of 46 degrees puts it in the yellows, and 50% lightness with 100% saturation makes it a mid tone. The colour picker above accepts HEX or R, G and B numbers directly, so you can type any of those in and rebuild the palette around it. The other codes in the sets above are steps around that base: lighter, darker, or nudged a little along the hue.