Generated palette

Purple Palette

Purple Palette: #800080, #008000, #400080, #800040. Check roles, contrast and CSS variables; open source-color links and JSON.

Purple Palette assigns primary #800080, secondary #008000, surface #400080, background #800040, accent #FFFFFF. The set spans Pink, Green, Purple, and Gray families with warm, cool, and neutral temperatures. Luminance runs from #400080 at 0.0265 to #FFFFFF at 1; black gives higher contrast on 1 of 5 values.

5colors
Pink palettedominant group
5use cases

Palette Color Roles

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

Primary#800080Purple
Secondary#008000Green
Surface#400080#400080
Background#800040#800040
Accent#FFFFFFWhite

CSS Variables

--palette-purple-primary: #800080;
--palette-purple-secondary: #008000;
--palette-purple-surface: #400080;
--palette-purple-background: #800040;
--palette-purple-accent: #FFFFFF;

Accessibility Snapshot

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

Primary#800080
Black 2.23:1 · White 9.42:1
Best #FFFFFF
Secondary#008000
Black 4.09:1 · White 5.14:1
Best #FFFFFF
Surface#400080
Black 1.53:1 · White 13.73:1
Best #FFFFFF
Background#800040
Black 1.99:1 · White 10.54:1
Best #FFFFFF
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

Preview how the 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 Purple Palette Data (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.0615
Black text2.23:1AA Fail
White text9.42: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": "#800080",
    "name": "Purple"
  },
  {
    "role": "secondary",
    "hex": "#008000",
    "name": "Green"
  },
  {
    "role": "surface",
    "hex": "#400080",
    "name": "#400080"
  },
  {
    "role": "background",
    "hex": "#800040",
    "name": "#800040"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#800080",
    "name": "Purple",
    "blackContrast": 2.23,
    "whiteContrast": 9.42,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "secondary",
    "hex": "#008000",
    "name": "Green",
    "blackContrast": 4.09,
    "whiteContrast": 5.14,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "surface",
    "hex": "#400080",
    "name": "#400080",
    "blackContrast": 1.53,
    "whiteContrast": 13.73,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "background",
    "hex": "#800040",
    "name": "#800040",
    "blackContrast": 1.99,
    "whiteContrast": 10.54,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
]
Semantic groups
[
  "purple palette",
  "generated palette",
  "pink palette",
  "green palette",
  "gray palette",
  "balanced palette",
  "jewel tone palette",
  "light palette",
  "neutral palette",
  "warm palette",
  "cool palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion",
  "wellness and botanical palettes"
]
CSS variables
"--palette-purple-primary: #800080;\n--palette-purple-secondary: #008000;\n--palette-purple-surface: #400080;\n--palette-purple-background: #800040;\n--palette-purple-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "purple",
  "name": "Purple Palette",
  "type": "generated",
  "sourceColor": "purple",
  "description": "Generated palette built from Purple, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Purple Palette combines primary #800080, secondary #008000, surface #400080, background #800040, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a pink palette, green palette, gray 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": [
    "purple palette",
    "generated palette",
    "pink palette",
    "green palette",
    "gray palette",
    "balanced palette",
    "jewel tone palette",
    "light palette",
    "neutral palette",
    "warm palette",
    "cool palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion",
    "wellness and botanical palettes"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#800080",
      "slug": "purple",
      "name": "Purple",
      "rgb": [
        128,
        0,
        128
      ],
      "hsl": [
        300,
        100,
        25
      ],
      "cmyk": [
        0,
        100,
        0,
        50
      ],
      "family": "pink",
      "temperature": "warm",
      "tone": [
        "balanced"
      ],
      "luminance": 0.0615,
      "contrast": {
        "black": 2.23,
        "white": 9.42
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/purple/"
    },
    {
      "role": "secondary",
      "hex": "#008000",
      "slug": "green",
      "name": "Green",
      "rgb": [
        0,
        128,
        0
      ],
      "hsl": [
        120,
        100,
        25
      ],
      "cmyk": [
        100,
        0,
        100,
        50
      ],
      "family": "green",
      "temperature": "cool",
      "tone": [
        "jewel-tone"
      ],
      "luminance": 0.1544,
      "contrast": {
        "black": 4.09,
        "white": 5.14
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "url": "https://www.colorsencyclopedia.com/colors/green/"
    },
    {
      "role": "surface",
      "hex": "#400080",
      "slug": null,
      "name": "#400080",
      "rgb": [
        64,
        0,
        128
      ],
      "hsl": [
        270,
        100,
        25
      ],
      "cmyk": [
        50,
        100,
        0,
        50
      ],
      "family": "purple",
      "temperature": "cool",
      "tone": [
        "jewel-tone"
      ],
      "luminance": 0.0265,
      "contrast": {
        "black": 1.53,
        "white": 13.73
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#800040",
      "slug": null,
      "name": "#800040",
      "rgb": [
        128,
        0,
        64
      ],
      "hsl": [
        330,
        100,
        25
      ],
      "cmyk": [
        0,
        100,
        50,
        50
      ],
      "family": "pink",
      "temperature": "warm",
      "tone": [
        "balanced"
      ],
      "luminance": 0.0496,
      "contrast": {
        "black": 1.99,
        "white": 10.54
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "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": "#800080",
      "name": "Purple"
    },
    {
      "role": "secondary",
      "hex": "#008000",
      "name": "Green"
    },
    {
      "role": "surface",
      "hex": "#400080",
      "name": "#400080"
    },
    {
      "role": "background",
      "hex": "#800040",
      "name": "#800040"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#800080",
      "name": "Purple",
      "blackContrast": 2.23,
      "whiteContrast": 9.42,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "secondary",
      "hex": "#008000",
      "name": "Green",
      "blackContrast": 4.09,
      "whiteContrast": 5.14,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "surface",
      "hex": "#400080",
      "name": "#400080",
      "blackContrast": 1.53,
      "whiteContrast": 13.73,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "background",
      "hex": "#800040",
      "name": "#800040",
      "blackContrast": 1.99,
      "whiteContrast": 10.54,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    }
  ],
  "cssVariables": "--palette-purple-primary: #800080;\n--palette-purple-secondary: #008000;\n--palette-purple-surface: #400080;\n--palette-purple-background: #800040;\n--palette-purple-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/purple.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/purple.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/purple/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/purple.json"
}