Skip to content

Royal Purple (#7851A9)

The hex code for Royal Purple is #7851A9. It is rgb(120, 81, 169) in RGB, hsl(267, 35%, 49%) in HSL, and about cmyk(29%, 52%, 0%, 34%) in CMYK — a mid-tone purple. White text is the more readable choice on this background.

#7851A9
HEX#7851A9
RGBrgb(120, 81, 169)
HSLhsl(267, 35%, 49%)
HSVhsv(267, 52%, 66%)
CMYKcmyk(29%, 52%, 0%, 34%)
OKLCHoklch(51.8% 0.138 302.3)
LABlab(41.97% 30.67 -41.82)
LCHlch(41.97% 51.87 306.26)

Colors Closest to Royal Purple

Royal Purple is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every purple in the library.

#7851A9 Channel Values

How Royal Purple breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 120 · G 81 · B 1698-bit channels as sent to the display
HSLH 267° · S 35% · L 49%Easiest model for building lighter and darker variants
HSVH 267° · S 52% · V 66%Matches the picker in most design tools
CMYKC 29% · M 52% · Y 0% · K 34%Approximate ink mix; confirm with an ICC profile before printing
Luminance5.92:1 vs white · 3.55:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Royal Purple background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text5.92:1AA normal AA large AAA normal
TextBlack text3.55:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #7851A9 in the contrast checker.

Colors That Go With Royal Purple

Pairings derived from color-wheel relationships. The complementary color sits opposite Royal Purple; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Royal Purple

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #7851A9.

How Royal Purple Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#7851A9
Protanopia#5959A9
Protanomaly#6756A9
Deuteranopia#6060A8
Deuteranomaly#6A5AA9
Tritanopia#6B6262
Tritanomaly#715C84
Achromatopsia#646464

Test a full palette in the color blindness simulator.

Using #7851A9 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--royal-purple: #7851A9;
CSS backgroundbackground-color: #7851A9;
Tailwind configcolors: { 'royal-purple': '#7851A9' }
SwiftUIColor(red: 0.471, green: 0.318, blue: 0.663)
Android XML<color name="royal_purple">#7851A9</color>
SVG fillfill="#7851A9"

More Purple Colors

Royal Purple sits in the purplefamily. These are its neighbours across that family's full range, each with its own breakdown.

#7851A9 Frequently Asked Questions

What is the hex code for Royal Purple?

The hex code for Royal Purple is #7851A9. That is rgb(120, 81, 169) in RGB, hsl(267, 35%, 49%) in HSL, and approximately cmyk(29%, 52%, 0%, 34%) in CMYK.

What is the RGB value of #7851A9?

#7851A9 is rgb(120, 81, 169) — red 120, green 81, and blue 169 on the 0-255 scale.

What is the CMYK value of #7851A9?

#7851A9 converts to approximately cmyk(29%, 52%, 0%, 34%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #7851A9 be black or white?

White text is the more readable choice. #7851A9 scores 5.92:1 against white and 3.55:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #7851A9 as a CSS color keyword?

No. #7851A9 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is rebeccapurple (#663399) at a CIE76 distance of 13.65, which is visibly different.

Open Royal Purple in a Tool

Keep exploring: every purple in the color library, the guide to shades of purple, or the full color library.