graf1x

Purple and RoyalBlue

Contrasting color combination with 1.94:1 contrast ratio

#800080
#4169E1

Color Values

Purple
HEX #800080
RGB 128, 0, 128
HSL 300, 100%, 25%
RoyalBlue
HEX #4169E1
RGB 65, 105, 225
HSL 225, 73%, 57%

Harmony: Contrasting

These colors sit far enough apart on the wheel to create clear contrast without falling into a named harmony. The pairing works through difference rather than relationship, which suits designs that want variety over cohesion.

The hue angle between Purple and RoyalBlue is 75 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

1.94:1
Purple background with RoyalBlue text
Below AA — decorative use only

UI Preview

Purple surface

Sample text on a purple background demonstrates readability and visual hierarchy.

RoyalBlue surface

Sample text on a royalblue background demonstrates readability and visual hierarchy.

Design Tokens

CSS Variables

:root {
  --color-a: #800080;
  --color-b: #4169E1;
  --color-a-rgb: 128, 0, 128;
  --color-b-rgb: 65, 105, 225;
}

JSON

{
  "name": "Purple and RoyalBlue",
  "colors": [
    {
      "name": "Purple",
      "hex": "#800080",
      "rgb": [
        128,
        0,
        128
      ]
    },
    {
      "name": "RoyalBlue",
      "hex": "#4169E1",
      "rgb": [
        65,
        105,
        225
      ]
    }
  ],
  "harmony": "Contrasting",
  "contrastRatio": 1.94
}

Explore These Colors

Frequently Asked Questions

Do purple and royalblue go together?

Yes. Purple and RoyalBlue form a contrasting color combination. These colors sit far enough apart on the wheel to create clear contrast without falling into a named harmony. The pairing works through difference rather than relationship, which suits designs that want variety over cohesion. The pairing has a WCAG contrast ratio of 1.94:1, which is below the AA threshold for text — use it for decorative purposes rather than text readability.

What is the contrast ratio between purple and royalblue?

The WCAG 2.1 contrast ratio between Purple (#800080) and RoyalBlue (#4169E1) is 1.94:1. This ratio is below AA. Use the pairing for backgrounds, borders, and decorative elements rather than text-on-background combinations.

How do I use purple and royalblue in design?

A safe starting point is the 60/30/10 rule: give one color about 60 percent of the surface area, the other about 30 percent, and reserve the remaining 10 percent for an accent or neutral. If one color is significantly darker, use it for text or structural elements and the lighter one for backgrounds. Test the result with our Contrast Checker if text is involved.

What are the hex and RGB values for purple and royalblue?

Purple has the hex code #800080 and RGB values rgb(128, 0, 128). RoyalBlue has the hex code #4169E1 and RGB values rgb(65, 105, 225). You can copy these directly into CSS or use the design tokens provided on this page.