On this page
I have used this combination in app interfaces, packaging and event print. It rewards some planning, because the pure codes behave very differently from the softer shades most people picture. Below you will find exact color values, tested contrast ratios, palettes and practical rules for each medium.
Purple and yellow hex codes, RGB, HSL and CMYK
The two reference colors are the CSS named colors purple and yellow. Purple is half-strength red and half-strength blue with no green, and yellow is full red and full green with no blue. That is why yellow is so bright: it combines two of the three light channels at full power.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Purple | 128, 0, 128 | 300°, 100%, 25% | 0, 100, 0, 50 | |
| Yellow | 255, 255, 0 | 60°, 100%, 50% | 0, 0, 100, 0 | |
| Indigo | 75, 0, 130 | 275°, 100%, 25% | 42, 100, 0, 49 | |
| Gold | 255, 215, 0 | 51°, 100%, 50% | 0, 16, 100, 0 |
The CMYK numbers are plain mathematical conversions. A real press uses an ink profile and paper stock, so treat these as a starting point for a proof, not a promise.
Why purple and yellow work together on the color wheel
On the traditional red-yellow-blue wheel that painters learn, purple and yellow sit directly opposite each other. Opposites make each other look stronger when placed side by side, which is the classic complementary effect. On the digital RGB wheel the story shifts slightly: yellow sits at 60° and purple at 300°, so they are 120° apart. Yellow’s true digital opposite is blue (see yellow and blue), and purple’s is green (see purple and green).
In practice, the wheel matters less than lightness. Yellow is the lightest pure hue we have, and purple is one of the darkest. That gap gives you built-in readability and a clear visual hierarchy. If you shrink the gap, for example by pairing a mid-tone lilac with a pale lemon, the combination turns soft and dreamy instead of bold.
Pure purple and yellow versus the shades people actually use
The pure codes are useful as references, but they are rarely the best final choice. leans toward magenta, so it can feel a little fuchsia and retro. is a very sharp lemon that can tire the eyes on large areas. Most polished purple and yellow designs pick one of three directions:
- Deep and regal: indigo or eggplant with gold .
- Bright and playful: violet like with a clear yellow like .
- Soft and pastel: lavender or lilac with butter .
Warmer yellows such as mustard shift the mood from cheerful to earthy, and blue-leaning purples shift it from playful to calm. A useful rule: if you push the purple darker, push the yellow warmer. A very dark violet with a lemon-cold yellow can look harsh, while the same violet with gold looks expensive.
Give purple 60 to 70 percent of the space and let yellow take 10 to 15 percent. Equal amounts of both compete and tire the eye.
Contrast and WCAG: does purple on yellow pass?
Yes, and by a wide margin. I calculated the ratios using the WCAG formula. on gives about 8.77:1, which clears AA (4.5:1 for normal text) and AAA (7:1). The live preview above shows the same pair as background, text and button, with its contrast score, so you can see how it feels at real sizes.
Which pairing is the safest choice for small body text?
Purple on yellow reaches about 8.77:1, while black on purple (2.23:1) and white on yellow (1.07:1) both fail.
Direction matters a lot, though. These ratios come from the same two colors in different combinations:
- White on : 9.42:1, a strong pass.
- Black on : 2.23:1, a fail for text.
- Black on : 19.56:1, excellent.
- White on : 1.07:1, effectively invisible.
- on : 9.23:1, a strong pass.
- on lavender : 7.65:1, passes AAA.
I once fixed a client app whose primary button was yellow with a white label. It looked friendly in the mockup and was almost unreadable outdoors. Switching the label to deep purple and keeping the yellow fill solved it without touching the brand colors.
Ready-to-use purple and yellow palettes
These four palettes cover the main moods: loud, refined, soft and festive. Each uses five colors so you have a dark, a light, a mid-tone and an accent to work with. Copy the codes straight from the swatches.
Posters, stickers and playful landing pages that need maximum punch.

Brand identities and app interfaces that want depth with one bright accent.
Weddings, spring stationery, skincare packaging and soft social graphics.
Event flyers and festive menus mixing purple, green and gold.
Each palette follows the same logic: one dominant purple, one light neutral for breathing room, and a single yellow doing the attention work. If you want to add a second accent, keep it far smaller than the yellow.
Using purple and yellow in web and UI design
In interfaces, purple works best as the brand or primary color, and yellow works best as the signal: highlights, badges, selected states and warnings. Avoid yellow text on white, since it fails badly. Use yellow as a fill with dark text on top instead, and keep a purple outline on focus so keyboard users can see where they are.

A reliable starting set of CSS variables looks like this:
:root {
--purple: #4B0082;
--purple-soft: #E6E6FA;
--yellow: #FFD700;
--ink: #1A1A1A;
}
.button {
background: var(--yellow);
color: var(--purple);
border: 2px solid var(--purple);
}
For dark mode, a deep violet background with gold accents tends to feel richer than pure black. If you want to explore moody, layered violets before adding the yellow, dark blue and dark purple is a good companion study.
Purple and gold in logos, teams and celebrations
Purple and gold is the most familiar version of this pair in public life. The Los Angeles Lakers use purple and gold , and the Minnesota Vikings use purple and gold . In both cases the purple is darker and bluer than web purple, and the yellow is warmed toward gold. That is the same logic described earlier, proven at stadium scale.
Mardi Gras adds green to the pair. The traditional carnival colors are purple, green and gold, usually explained as justice, faith and power. Those meanings come from tradition rather than a formal standard, but the palette is instantly recognizable, and the “Mardi Gras Night” palette above builds on it.
Purple and yellow in interiors and fashion
At home, lean on the 60-30-10 rule. A room with soft lavender or greyed lilac walls (about 60 percent), cream textiles and wood (30 percent), and a handful of mustard cushions or a yellow lamp (10 percent) feels calm with a spark. Strong purple walls need plenty of light, and yellow works better as objects than as paint.
In fashion, the pair is bold but flattering when you keep proportions uneven: a violet coat with a mustard scarf, or a yellow bag with a lilac knit. Warm, earthy materials such as leather and timber soften it, so brown and gold can guide your neutrals. If you want to add a third color, a touch of pink is surprisingly easy. The yellow and pink page shows how those two behave together.
Print and art: where purple and yellow change
Yellow is the easy one in print. converts to a single yellow ink, so it stays clean and consistent. Purple is trickier because it is built from magenta, cyan and sometimes black, so small press variations can push it toward red or blue. On one event poster, a screen-perfect violet came back from the proof looking noticeably more magenta, and we corrected it by adding cyan and reducing magenta.
In a plain RGB to CMYK conversion, which reference color needs only one ink?
Yellow converts to 0, 0, 100, 0, while purple needs full magenta plus black.
Always ask for a printed proof when purple carries your brand. Uncoated paper dulls both colors, and yellow loses much of its glow, so you may need a slightly warmer yellow to keep the energy.
In art, painters have long used violet shadows against yellow light because the contrast makes both feel more vivid. Digital artists push it further: saturated purple and yellow show up in pop art and glowing night scenes, and they sit comfortably inside psychedelic color palettes.
Try this: Fill a rectangle with and add a small circle in one corner. Then swap the gold for and compare. Notice which feels more premium and which feels more playful.
Neutrals and extra colors that sit well beside the pair
White, cream and soft grey give both colors room. Near-black such as is a better text color than pure black on most pastel backgrounds because it feels less harsh while still keeping high contrast.
If you need more than two colors, stay disciplined. A touch of green reads as festive, a touch of pink reads as warm and modern, and a touch of blue-grey calms everything down. Use any extra color at about the same quantity as the yellow, never more, and the purple and yellow will keep their identity.
Shades that keep this combination working
Purple and Yellow Color Palette: questions people ask
What is the hex code for purple and yellow?
Web purple is #800080 and web yellow is #FFFF00. For gentler results, many designers swap in indigo #4B0082 with gold #FFD700, or lavender #E6E6FA with butter #FFF3A3.
Do purple and yellow go together?
Yes. They differ strongly in lightness, which makes the pair easy to read and visually lively. They work best when one color leads and the other is used as an accent.
Are purple and yellow complementary colors?
On the traditional red-yellow-blue wheel, yes, they sit opposite each other. On the digital RGB wheel they are 120 degrees apart, so the pairing behaves like a strong contrast rather than a true opposite.
Is purple text on a yellow background accessible?
With the pure codes, #800080 on #FFFF00 has a contrast ratio of about 8.77:1, which passes WCAG AA and AAA for normal text. Always check your own shades, because softer tints can drop below the limit.
What colors go with purple and yellow?
White, near-black, soft grey and cream are the safest neutrals. Green, as in Mardi Gras palettes, and pink also work if you keep them small.
Keep exploring
- Pink and Purple Color Combination: Palettes and Hex Codes
- Orange and Black Color Scheme: Palettes and Hex Codes
- Blue and Black Color Combination: Palettes and Hex Codes
- Black and Grey Color Combination: Palettes and Hex Codes
- Orange and Brown Color Combination: Palettes and Hex Codes
- Brown and Black Color Palette: Combinations and Hex Codes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes