Skip to content
Color Codes

4 colors

Royal Purple

Design preview

Color details

01Primary
ContrastAa 12.9Aa 1.6
02Secondary
ContrastAa 9.2Aa 2.3
03Accent
ContrastAa 6.3Aa 3.4
04Background
ContrastAa 3.8Aa 5.6

Use this palette

CSS variables

:root {
  --royal-purple-1: #4B0082;
  --royal-purple-2: #6A0DAD;
  --royal-purple-3: #7F00FF;
  --royal-purple-4: #9370DB;
}

Tailwind colors

module.exports = {
  theme: {
    extend: {
      colors: {
        'royal-purple': {
          100: '#4B0082',
          200: '#6A0DAD',
          300: '#7F00FF',
          400: '#9370DB',
        },
      },
    },
  },
};

Accessible color pairs

Text and background combinations from this palette that meet WCAG AA (4.5:1) for normal text.

No pair in this palette reaches 4.5:1. Use black or white text for body copy.

Named colors in this palette

The closest CSS named color to each swatch.

More palettes

All palettes