royal purple color code
The hex code for royal purple is #7851A9, which is rgb(120, 81, 169) in RGB and cmyk(29%, 52%, 0%, 34%) in CMYK. It's a medium, moderately saturated purple. There is no official standard for royal purple; #7851A9 is the value most colour references use.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer royal purple; the codes update as you go.
Royal Purple colour codes
| HEX | #7851A9 |
|---|---|
| RGB | rgb(120, 81, 169) |
| HSL | hsl(267, 35%, 49%) |
| HSV / HSB | hsv(267, 52%, 66%) |
| CMYK | cmyk(29%, 52%, 0%, 34%) |
| Decimal | 7885225 |
About royal purple
Royal Purple sits at a hue of 267° on the colour wheel, with 35% saturation and 49% lightness. That makes it a cool colour: cool colours feel calm and steady and appear to recede, so they work well for large areas.
A deep purple associated with royalty because purple dye was once rare and expensive.
For text, white reads better on royal purple. Royal Purple as text on a white background has a contrast ratio of 5.91:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 3.54:1, which fails AA for body text.
Tints and shades of royal purple
Tints mix royal purple with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with royal purple
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Royal Purple text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| royal purple on white | 5.91:1 | pass | pass | fail |
| royal purple on black | 3.54:1 | fail | pass | fail |
Check royal purple against any other colour in the contrast checker.
How royal purple looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use royal purple in code
.royal-purple {
color: #7851a9;
background-color: #7851a9;
border-color: rgb(120, 81, 169);
}Frequently asked questions
What is the hex code for royal purple?
#7851A9 is the most widely used value for royal purple. There's no official standard, so paint, fabric and brand swatches called royal purple can differ slightly; use the hex code to match it exactly on screen.
What is royal purple in RGB, HSL and CMYK?
RGB: rgb(120, 81, 169). HSL: hsl(267, 35%, 49%). CMYK: cmyk(29%, 52%, 0%, 34%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with royal purple?
Its complementary colour is #82A951 (close to olive drab), which gives the strongest contrast. For a calmer look, use the analogous colours #5156A9 and #A451A9, or the triadic pair #A97851 and #51A978. Tints and shades of royal purple itself always work together.
Is royal purple a warm or cool colour?
Royal Purple has a hue of 267°, which makes it cool.
Should I use black or white text on royal purple?
White. Black text on royal purple has a contrast ratio of 3.54:1 and white text has 5.91:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
Is royal purple a CSS colour name?
No. Royal Purple isn't one of the named colours built into CSS, so write it as a hex code: color: #7851a9;