Palette maker

Red, Blue and Purple Color Combination: Palettes and Hex Codes

The three pure codes are for red, for blue and for purple. Together they make a bold, energetic trio that works best when one color leads and the other two support it.

Fresh ideas, made simple

A short line of body text to test how readable these colors are.

Get started

Text contrast

-

    On this page
    1. Mixing
    2. Codes
    3. Look
    4. Contrast
    5. Shades
    6. Web and UI
    7. Gradients
    8. Branding
    9. Printing
    10. Pairings
    11. FAQ

    Purple sits between the other two, so the scheme feels connected rather than random. Below you will find the exact color values, contrast scores, CSS, gradient tips and print advice for using it well.

    What Happens When You Mix Red and Blue?

    In paint, red and blue pigments combine into a purple whose tone depends on the exact pigments, and it is often a little dull. Screens work differently because they add light. Full red light plus full blue light gives magenta, , not purple.

    On a screen, full red light plus full blue light gives which color?

    Screens add light, so maxing the red and blue channels gives magenta, and purple is that same hue at half intensity.

    That is where comes from. It is magenta at half intensity: red and blue channels both at 128, green at zero. On the color wheel it sits at 300 degrees, between blue at 240 and red at 360. If you want the hotter end of that neighborhood, the red and magenta combination shows how the same family looks when the blue is pushed out.

    Hex, RGB, HSL and CMYK Codes for the Trio

    Here are all four formats for the three base colors. The HSL values come straight from the RGB channels, and the CMYK numbers use the simple screen-to-print formula.

    Color HEX RGB HSL CMYK
    Red 255, 0, 0 0°, 100%, 50% 0, 100, 100, 0
    Blue 0, 0, 255 240°, 100%, 50% 100, 100, 0, 0
    Purple 128, 0, 128 300°, 100%, 25% 0, 100, 0, 50

    Treat the CMYK column as a starting point. A printer’s own profile will change those numbers, and the printed result will not match the screen exactly. More on that in the print section.

    How Red, Blue and Purple Look Together

    Red is warm and loud, blue is cool and steady, and purple lands in between. Purple changes character depending on its neighbor: beside red it feels cool, and beside blue it feels warm. That flexibility is why it works as the connector in this trio.

    The tricky part is pure red against pure blue. The edges seem to shimmer because your eye focuses the two wavelengths slightly differently, so large fields of both can tire the eye. Blue and also have almost the same lightness, which means they merge when placed side by side.

    Quick read

    Red leads, purple connects, blue calms. Give each color a clear job and the trio stops competing with itself.

    Contrast and WCAG: What Passes and What Fails

    The live preview above scores any pairing you try. These are the ratios I computed from the WCAG formula for the pure colors, where 4.5:1 is the AA target for body text and 3:1 for large text:

    • White on : 4.00:1 (large text only)
    • Black on : 5.25:1
    • White on : 8.59:1
    • White on : 9.42:1
    • Black on : 2.44:1, and black on : 2.23:1
    • Red against blue: 2.15:1, red against purple: 2.36:1, blue against purple: 1.10:1

    The pattern is simple. Blue and purple like white text and fail with black, while red is borderline either way. That last blue-versus-purple figure explains why those two blur together if you use them as neighboring blocks without a light or dark divider.

    Which pair is safe for small body text under WCAG AA (4.5:1)?

    White on #800080 scores about 9.42:1, while the other two land at 4.00:1 and 2.44:1.

    On a client dashboard I once swapped a button for . The white label went from 4.00:1 to about 5.9:1, it passed the audit, and nobody noticed the change by eye. Also avoid using red and blue as the only signal for meaning, since some people see them differently. Add an icon or a label.

    Shades That Make the Trio Easier to Use

    Pure primaries are intense, so most real projects soften them. Crimson () is a friendlier red, royal blue () is easier to read as a link color, and Rebecca purple () gives a deeper, more refined violet. Rebecca purple was added to CSS in 2014 in memory of Eric Meyer’s daughter.

    Seven-step purple tint and shade ladder from light to dark with hex codes, base #800080 marked, and the text color flip point
    On a purple ladder, text must flip from dark to white after the second tint.

    It helps to know the near neighbors. Indigo () is darker and bluer than . Blueviolet () is brighter and more electric. Navy () is simply blue at half intensity, and for a lighter, sky-leaning option, azure blue opens up the airy side of the blue range.

    Using Red, Blue and Purple in Web and App Design

    Give each color a job

    Blue is the safest primary: links, main buttons, focus rings. Purple works for brand moments, headings or secondary actions. Red should mostly mean something, such as errors, deletions or sale tags, so avoid using it decoratively in an app.

    Five-swatch UI palette strip showing blue main, purple accent, red alert, near-black text and lavender background with hex codes
    Blue leads, purple accents, red warns, and calm neutrals carry the text and the background.
    :root {
      --blue: #0000FF;
      --purple: #800080;
      --red: #CC0000; /* 5.9:1 with white text */
      --surface: #E6E6FA;
    }
    .btn-primary { background: var(--blue); color: #fff; }
    .btn-danger  { background: var(--red);  color: #fff; }

    Dark mode and backgrounds

    Full as a page background is harsh. Use midnight blue () or navy for large dark areas, and keep the saturated blue for small touches. Lavender () is a gentle light background that keeps the purple theme going.

    Gradients That Stay Rich in the Middle

    The sRGB midpoint between and is almost exactly , because the halfway value of 255 and 0 is about 128. So a plain red-to-blue gradient already passes through your purple, and it stays saturated because no green sneaks in. Red to green, by contrast, goes muddy in the middle.

    background: linear-gradient(90deg, #FF0000 0%, #800080 50%, #0000FF 100%);

    Modern browsers also let you pick the interpolation space, for example linear-gradient(in oklch, ...). That keeps perceived lightness steadier but shifts the hues, so check it by eye.

    Try this: Build the same red-to-blue gradient twice, once with the default and once with in oklch. Put them side by side and keep the one whose middle looks less dark.

    Branding, Fashion and Interiors

    Branding

    This trio suits entertainment, gaming, music and nightlife better than finance or healthcare, where calmer blues usually dominate. For a more premium feel, shift the red toward burgundy and pair the purple with metallic warmth, as in purple and gold. For celebrations, the same bright trio makes a strong theme, and birthday colors has more party-ready ideas.

    Fashion and interiors

    In clothing, red, blue and purple read as jewel tones when they are deep: ruby, sapphire and amethyst. Keep one as the main garment and use another in an accessory. Indoors, a deep blue or purple wall with red limited to cushions, a rug or art keeps the room from feeling aggressive.

    Printing the Trio: Why CMYK Surprises

    Pure and sit at the edge of what CMYK ink can reproduce. I once proofed a client’s as 100% cyan and 100% magenta, and the printed blue came back closer to a dark violet than the bright screen blue. We fixed it by choosing a slightly lighter blue that the press could hold.

    A few steps prevent that surprise:

    1. Convert your colors to CMYK early, not on the day of printing.
    2. Soft-proof with the printer’s profile, or ask for a physical proof.
    3. If a brand color is critical, ask about a spot ink instead of a mix.

    Colors That Balance a Red, Blue and Purple Scheme

    White, light grey () and near-black () calm the trio. Dark neutrals such as navy and black add depth, while navy and grey gives a quieter, more corporate base. For a brighter accent, a soft yellow lifts blue the way yellow and blue does.

    Pure Primary Trio

    Bold posters, event flyers and high-energy hero sections with strong white space.

    Midnight Velvet

    Dark mode dashboards, music sites and evening event invitations.

    Berry Dusk

    Creative studio branding, portfolios and editorial layouts with a rich feel.

    Soft Orchid Pop

    Friendly app interfaces, pastel brands and party invitations with a light touch.

    Start with 60% of one color or neutral, 30% of a second and 10% of the third. The palettes below follow that kind of balance.

    Shades that keep this combination working

    Red, Blue and Purple Color Combination: questions people ask

    What color do you get when you mix red and blue?

    You get purple or violet. In paint the result is usually a muted purple, while on a screen full red and full blue light make magenta (#FF00FF). The classic CSS purple, #800080, is magenta at half brightness.

    What is the hex code for purple?

    The CSS named color purple is #800080, which is RGB 128, 0, 128. Brighter purples such as blueviolet (#8A2BE2) and darker ones such as indigo (#4B0082) sit on either side of it.

    Do red, blue and purple go well together?

    Yes, if one color leads and the others support it. Purple links the warm red and cool blue, but pure red next to pure blue can vibrate, so soften the shades or separate them with white, grey or near-black.

    Is red text on a blue background readable?

    Not at full strength. Pure #FF0000 on #0000FF scores only about 2.15:1, far below the 4.5:1 WCAG AA target, and the edges shimmer. Use white text on blue, or a much lighter red on a dark blue.

    What colors go with red, blue and purple?

    White, light grey and near-black are the safest partners. Gold or soft yellow gives a lively accent, and a pale lavender such as #E6E6FA works as a calm background.

    Keep exploring