Skip to content
#5A2E7A
#8E4EA8
#D8B860
#2E1440
Background
Decorative / accent
Text · AA
Decorative / accent

Maharaja Purple Color Palette

#5A2E7A · #8E4EA8 · #D8B860 · #2E1440

Fail
WCAG Grade
1.63:1
Contrast Ratio
AI Prompt

Use #5A2E7A as the background. Use #8E4EA8 as the primary accent. Use #D8B860 as secondary. Use #2E1440 as body text/supporting color. Palette mood: Maharaja Purple — royal, vintage, night, moody.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Maharaja Purple color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 5.5%
90, 46, 122 26%, 62%, 0%, 52% 275°, 45%, 33%
Decorative / accent
Luminance: 14.0%
142, 78, 168 15%, 54%, 0%, 34% 283°, 37%, 48%
Text · AA
Luminance: 49.7%
216, 184, 96 0%, 15%, 56%, 15% 44°, 61%, 61%
Decorative / accent
Luminance: 1.5%
46, 20, 64 28%, 69%, 0%, 75% 275°, 52%, 16%

Maharaja Purple Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the Maharaja Purple palette — click any swatch to copy its hex.

#5A2E7A gently saturated violet
#8E4EA8 gently saturated violet
#D8B860 gently saturated orange
#2E1440 gently saturated violet

Maharaja Purple Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#2E1440 on #D8B860
Aa Sample Text
8.48:1 AAA Body text, headings, UI
#D8B860 on #2E1440
Aa Sample Text
8.48:1 AAA Body text, headings, UI
#D8B860 on #5A2E7A
Aa Sample Text
5.19:1 AA Body text, UI
#5A2E7A on #D8B860
Aa Sample Text
5.19:1 AA Body text, UI
#2E1440 on #8E4EA8
Aa Sample Text
2.94:1 Fail Decorative use only
#8E4EA8 on #2E1440
Aa Sample Text
2.94:1 Fail Decorative use only
#D8B860 on #8E4EA8
Aa Sample Text
2.87:1 Fail Decorative use only
#8E4EA8 on #D8B860
Aa Sample Text
2.87:1 Fail Decorative use only
#8E4EA8 on #5A2E7A
Aa Sample Text
1.80:1 Fail Decorative use only
#5A2E7A on #8E4EA8
Aa Sample Text
1.80:1 Fail Decorative use only
#2E1440 on #5A2E7A
Aa Sample Text
1.63:1 Fail Decorative use only
#5A2E7A on #2E1440
Aa Sample Text
1.63:1 Fail Decorative use only

Palette Details

The courts of the Indian maharajas used violet, gold and deep jewel colour in textiles, turbans and the lacquer of palace furniture. All four colors are balanced (37–61%), with lightness running 16–61%. Body text #2E1440 on #5A2E7A measures 1.63:1 (no WCAG text threshold); the accent #8E4EA8 measures 1.80:1 against the same background.

Color Harmony: No Single Classic Rule

Two hue groups sit 126° apart — 3 colors around 278° and 1 color around 44°. That is neither complementary (180°) nor analogous (within about 60°).

Hue Wheel

Because the hue spacing is irregular, choose roles by measured contrast rather than by hue relationship.

History & Design Context

Royal courts across India developed distinct craft traditions in dyeing and textile, and the turban's colour could signal rank, occasion and clan, making the wardrobe a form of heraldry.

Best Design Use Cases

Use the maharaja violet for page backgrounds, royal orchid for calls to action, gold trim for card accents, and court night for text.

Measured best pair: #2E1440 on #D8B860 at 8.48:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.

Industries This Palette Suits

Jewelry & Watches, Fashion Houses, Automotive, Fine Spirits, High-End Hospitality, Private Banking.

Colors That Pair Well With Maharaja Purple

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

green

directly opposite #8E4EA8 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

magenta

30° beside #8E4EA8 — a calm secondary that extends the palette without adding tension

tinted neutral

a paper-white carrying the palette's own hue — perfect for surfaces and dividers

Using Maharaja Purple Without Breaking Accessibility

  • Avoid #8E4EA8 for small UI elements on #5A2E7A — at 1.80:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
  • Don't set body copy in #2E1440 on #5A2E7A — 1.63:1 fails WCAG AA; keep it for large decorative headings only.
  • Don't use #D8B860 behind body text — this light tone works better for surfaces, badges and dividers than for reading areas.

How to Implement the Maharaja Purple Color Scheme

To use this Maharaja Purple color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.

Option 1: CSS Variables

:root {
  /* Maharaja Purple — ihatecolors */
  --color-bg: #5A2E7A;
  --color-accent: #8E4EA8;
  --color-secondary: #D8B860;
  --color-text: #2E1440;
}

Web Design Tip

#8E4EA8 on #5A2E7A measures 1.80:1 — below the 3:1 WCAG threshold for UI components. Use it for decoration only, or darken it with a shade from the ramp before using it for buttons, icons or borders.

Accessibility Note

#2E1440 on #5A2E7A measures 1.63:1, which fails every WCAG text threshold. The strongest pair in this palette is #2E1440 on #D8B860 at 8.48:1 — use that pair for normal text instead.

Maharaja Purple Palette — Frequently Asked Questions

What are the hex codes in the Maharaja Purple color palette?

The Maharaja Purple palette contains #5A2E7A, #8E4EA8, #D8B860, #2E1440. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the Maharaja Purple color palette accessible (WCAG)?

Yes. #2E1440 on #D8B860 reaches 8.48:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.

What colors go well with the Maharaja Purple palette?

Beyond its own four colors, #67A84D, #9B598D, #EDEBEF extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the Maharaja Purple palette create?

Maharaja Purple reads as royal, vintage, night. Gently saturated violet drives the personality, grounded by gently saturated violet — a combination that works best when the mid-tone base gets most of the canvas.

Can I use the Maharaja Purple color palette commercially?

Yes. Individual color values can't be copyrighted, so the Maharaja Purple palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the Maharaja Purple palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from Maharaja Purple's exact values, including the tint and shade ramps shown above.

Live Preview
Generate Similar ✦