Generated palette

Royal Purple Palette

Royal Purple Palette: #7851A9, #81A951, #5156A9, #A451A9. Check roles, contrast and CSS variables; open source-color links and JSON.

Royal Purple Palette assigns primary #7851A9, secondary #81A951, surface #5156A9, background #A451A9, accent #FFFFFF. The set spans Purple, Green, Blue, and Pink families with cool, warm, and neutral temperatures. Luminance runs from #5156A9 at 0.1127 to #FFFFFF at 1; black gives higher contrast on 2 of 5 values.

5colors
Purple palettedominant group
7use cases

Palette Color Roles

Royal Purple Palette maps 5 colors to practical UI roles for interfaces, brand systems, and CSS tokens.

Primary#7851A9Royal Purple
Secondary#81A951#81A951
Surface#5156A9#5156A9
Background#A451A9#A451A9
Accent#FFFFFFWhite

CSS Variables

--palette-royal-purple-primary: #7851A9;
--palette-royal-purple-secondary: #81A951;
--palette-royal-purple-surface: #5156A9;
--palette-royal-purple-background: #A451A9;
--palette-royal-purple-accent: #FFFFFF;

Accessibility Snapshot

Compare all 5 Royal Purple Palette values against black and white text, with the stronger standard foreground identified for each role.

Primary#7851A9
Black 3.55:1 · White 5.92:1
Best #FFFFFF
Secondary#81A951
Black 7.73:1 · White 2.72:1
Best #000000
Surface#5156A9
Black 3.25:1 · White 6.45:1
Best #FFFFFF
Background#A451A9
Black 4.33:1 · White 4.85:1
Best #FFFFFF
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

Preview how the Royal Purple Palette roles behave together across common interface components before copying the CSS variables.

ButtonPrimary action with checked foreground contrast.
CardSurface treatment using palette roles.
AlertBackground, text, and accent roles together.
NavbarSecondary role with accent state.

Machine-readable data

Machine-Readable Royal Purple Palette Data (JSON)

Structured palette data for Royal Purple Palette, including color roles, accessibility, semantic groups, use cases, CSS variables, and API links.

AI-Ready Dataset v1.0.0
Luminance0.1274
Black text3.55:1AA Fail
White text5.92:1AA Pass
colorsPalette colors with roles and color systems
rolesPrimary, secondary, surface, background, and accent mapping
accessibilityContrast and WCAG text options by palette color
semanticGroupsAI-readable palette labels
useCasesDesign and implementation contexts
cssVariablesCopy-ready CSS custom properties
Download JSON Open API
Structured sections
Roles
[
  {
    "role": "primary",
    "hex": "#7851A9",
    "name": "Royal Purple"
  },
  {
    "role": "secondary",
    "hex": "#81A951",
    "name": "#81A951"
  },
  {
    "role": "surface",
    "hex": "#5156A9",
    "name": "#5156A9"
  },
  {
    "role": "background",
    "hex": "#A451A9",
    "name": "#A451A9"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#7851A9",
    "name": "Royal Purple",
    "blackContrast": 3.55,
    "whiteContrast": 5.92,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "secondary",
    "hex": "#81A951",
    "name": "#81A951",
    "blackContrast": 7.73,
    "whiteContrast": 2.72,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A"
    ],
    "aaaTextOptions": [
      "#000000"
    ]
  },
  {
    "role": "surface",
    "hex": "#5156A9",
    "name": "#5156A9",
    "blackContrast": 3.25,
    "whiteContrast": 6.45,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "background",
    "hex": "#A451A9",
    "name": "#A451A9",
    "blackContrast": 4.33,
    "whiteContrast": 4.85,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
]
Semantic groups
[
  "royal purple palette",
  "generated palette",
  "purple palette",
  "green palette",
  "blue palette",
  "pink palette",
  "gray palette",
  "balanced palette",
  "earth tone palette",
  "light palette",
  "neutral palette",
  "cool palette",
  "warm palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion",
  "natural branding",
  "wellness and botanical palettes",
  "calm digital interfaces"
]
CSS variables
"--palette-royal-purple-primary: #7851A9;\n--palette-royal-purple-secondary: #81A951;\n--palette-royal-purple-surface: #5156A9;\n--palette-royal-purple-background: #A451A9;\n--palette-royal-purple-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "royal-purple",
  "name": "Royal Purple Palette",
  "type": "generated",
  "sourceColor": "royal-purple",
  "description": "Generated palette built from Royal Purple, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Royal Purple Palette combines primary #7851A9, secondary #81A951, surface #5156A9, background #A451A9, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a purple palette, green palette, blue palette system for design system tokens, CSS variables, palette reference, and AI color ingestion, with each color mapped to roles, contrast data, CSS tokens, and machine-readable JSON.",
  "semanticGroups": [
    "royal purple palette",
    "generated palette",
    "purple palette",
    "green palette",
    "blue palette",
    "pink palette",
    "gray palette",
    "balanced palette",
    "earth tone palette",
    "light palette",
    "neutral palette",
    "cool palette",
    "warm palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion",
    "natural branding",
    "wellness and botanical palettes",
    "calm digital interfaces"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#7851A9",
      "slug": "royal-purple",
      "name": "Royal Purple",
      "rgb": [
        120,
        81,
        169
      ],
      "hsl": [
        267,
        35,
        49
      ],
      "cmyk": [
        29,
        52,
        0,
        34
      ],
      "family": "purple",
      "temperature": "cool",
      "tone": [
        "balanced"
      ],
      "luminance": 0.1274,
      "contrast": {
        "black": 3.55,
        "white": 5.92
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "url": "https://www.colorsencyclopedia.com/colors/royal-purple/"
    },
    {
      "role": "secondary",
      "hex": "#81A951",
      "slug": null,
      "name": "#81A951",
      "rgb": [
        129,
        169,
        81
      ],
      "hsl": [
        87,
        35,
        49
      ],
      "cmyk": [
        24,
        0,
        52,
        34
      ],
      "family": "green",
      "temperature": "cool",
      "tone": [
        "earth-tone"
      ],
      "luminance": 0.3364,
      "contrast": {
        "black": 7.73,
        "white": 2.72
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A"
        ],
        "AAA": [
          "#000000"
        ]
      },
      "url": null
    },
    {
      "role": "surface",
      "hex": "#5156A9",
      "slug": null,
      "name": "#5156A9",
      "rgb": [
        81,
        86,
        169
      ],
      "hsl": [
        237,
        35,
        49
      ],
      "cmyk": [
        52,
        49,
        0,
        34
      ],
      "family": "blue",
      "temperature": "cool",
      "tone": [
        "balanced"
      ],
      "luminance": 0.1127,
      "contrast": {
        "black": 3.25,
        "white": 6.45
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#A451A9",
      "slug": null,
      "name": "#A451A9",
      "rgb": [
        164,
        81,
        169
      ],
      "hsl": [
        297,
        35,
        49
      ],
      "cmyk": [
        3,
        52,
        0,
        34
      ],
      "family": "pink",
      "temperature": "warm",
      "tone": [
        "balanced"
      ],
      "luminance": 0.1664,
      "contrast": {
        "black": 4.33,
        "white": 4.85
      },
      "wcag": {
        "AA": [
          "#FFFFFF"
        ],
        "AAA": []
      },
      "url": null
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "slug": "white",
      "name": "White",
      "rgb": [
        255,
        255,
        255
      ],
      "hsl": [
        0,
        0,
        100
      ],
      "cmyk": [
        0,
        0,
        0,
        0
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "light",
        "neutral"
      ],
      "luminance": 1,
      "contrast": {
        "black": 21,
        "white": 1
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/white/"
    }
  ],
  "roles": [
    {
      "role": "primary",
      "hex": "#7851A9",
      "name": "Royal Purple"
    },
    {
      "role": "secondary",
      "hex": "#81A951",
      "name": "#81A951"
    },
    {
      "role": "surface",
      "hex": "#5156A9",
      "name": "#5156A9"
    },
    {
      "role": "background",
      "hex": "#A451A9",
      "name": "#A451A9"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#7851A9",
      "name": "Royal Purple",
      "blackContrast": 3.55,
      "whiteContrast": 5.92,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "secondary",
      "hex": "#81A951",
      "name": "#81A951",
      "blackContrast": 7.73,
      "whiteContrast": 2.72,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A"
      ],
      "aaaTextOptions": [
        "#000000"
      ]
    },
    {
      "role": "surface",
      "hex": "#5156A9",
      "name": "#5156A9",
      "blackContrast": 3.25,
      "whiteContrast": 6.45,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "background",
      "hex": "#A451A9",
      "name": "#A451A9",
      "blackContrast": 4.33,
      "whiteContrast": 4.85,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    }
  ],
  "cssVariables": "--palette-royal-purple-primary: #7851A9;\n--palette-royal-purple-secondary: #81A951;\n--palette-royal-purple-surface: #5156A9;\n--palette-royal-purple-background: #A451A9;\n--palette-royal-purple-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/royal-purple.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/royal-purple.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/royal-purple/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/royal-purple.json"
}