Royal Purple (#7851A9)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #FFFFFF
Contrast vs white: 5.92:1 — vs black: 3.55:1

Color values

  • HEX #7851A9
  • RGB rgb(120, 81, 169)
  • HSL hsl(266, 52%, 66%)
  • CMYK cmyk( 28.99, 52.07, 0, 33.73 )
  • Websafe #666699

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #7851A9 based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Royal Purple
#7851A9 Base
#82A951
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Royal Purple
#7851A9 Base
#5156A9
#A451A9
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Royal Purple
#7851A9 Base
#A97851
#51A978
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Royal Purple
#7851A9 Base
#A9A451
#56A951
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Royal Purple
#7851A9 Base
#A95156
#82A951
#51A9A4
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Royal Purple
#7851A9 Base
#2F1F42
#533875
#64448D
#8D6BB8
#A083C4
#C7B7DC
Shades & Tints

Darker shades and lighter tints of Royal Purple, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#0C0811
#221730
#37254E
#4D346C
#62428B
Royal Purple #7851A9 Base
#906FBA
#A98FC9
#C1AED8
#D9CEE8
#F2EEF7
CSS & SCSS Snippets

Ready-to-use code snippets for #7851A9. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #7851A9;
}

/* Text */
.element {
    color: #7851A9;
}

/* Border */
.element {
    border: 1px solid #7851A9;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #7851A9,
        #AED67C
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #7851A9,
        #AED67C
    );
}
SCSS Variable
// SCSS variable
$royal-purple: #7851A9;

// With RGB channels (useful for rgba() usage)
$royal-purple-r: 120;
$royal-purple-g: 81;
$royal-purple-b: 169;

// Usage
.element {
    background-color: $royal-purple;
    color: rgba($royal-purple-r, $royal-purple-g, $royal-purple-b, 0.8);
}
Color Blindness Simulation

How Royal Purple appears to people with different types of color vision deficiency.

Normal Vision #7851A9 How the color appears with full color vision.
Deuteranopia #5E5EA9 Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #5656A9 Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #6B6262 Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #646464 Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Royal Purple ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Royal Purple #7851A9 Base
Dark Lavender #734F96 ΔE 3.67
Deep Lilac #9955BB ΔE 7.09
Purpureus #9A4EAE ΔE 7.26
Slate Blue #6A5ACD ΔE 7.82

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.