Generated palette

Han Purple Palette

Han Purple Palette: #5218FA, #C2FA19, #1951FA, #C219FA. Check roles, contrast and CSS variables; open source-color links and JSON.

Han Purple Palette assigns primary #5218FA, secondary #C2FA19, surface #1951FA, background #C219FA, accent #FFFFFF. The set spans Purple, Green, Blue, and Gray families with cool and neutral temperatures. Luminance runs from #5218FA at 0.0935 to #FFFFFF at 1; black gives higher contrast on 3 of 5 values.

5colors
Purple palettedominant group
6use cases

Palette Color Roles

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

Primary#5218FAHan Purple
Secondary#C2FA19#C2FA19
Surface#1951FA#1951FA
Background#C219FA#C219FA
Accent#FFFFFFWhite

CSS Variables

--palette-han-purple-primary: #5218FA;
--palette-han-purple-secondary: #C2FA19;
--palette-han-purple-surface: #1951FA;
--palette-han-purple-background: #C219FA;
--palette-han-purple-accent: #FFFFFF;

Accessibility Snapshot

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

Primary#5218FA
Black 2.87:1 · White 7.32:1
Best #FFFFFF
Secondary#C2FA19
Black 16.98:1 · White 1.24:1
Best #000000
Surface#1951FA
Black 3.6:1 · White 5.84:1
Best #FFFFFF
Background#C219FA
Black 4.81:1 · White 4.36:1
Best #000000
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

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

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

AI-Ready Dataset v1.0.0
Luminance0.0935
Black text2.87:1AA Fail
White text7.32: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": "#5218FA",
    "name": "Han Purple"
  },
  {
    "role": "secondary",
    "hex": "#C2FA19",
    "name": "#C2FA19"
  },
  {
    "role": "surface",
    "hex": "#1951FA",
    "name": "#1951FA"
  },
  {
    "role": "background",
    "hex": "#C219FA",
    "name": "#C219FA"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#5218FA",
    "name": "Han Purple",
    "blackContrast": 2.87,
    "whiteContrast": 7.32,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF"
    ]
  },
  {
    "role": "secondary",
    "hex": "#C2FA19",
    "name": "#C2FA19",
    "blackContrast": 16.98,
    "whiteContrast": 1.24,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  {
    "role": "surface",
    "hex": "#1951FA",
    "name": "#1951FA",
    "blackContrast": 3.6,
    "whiteContrast": 5.84,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "background",
    "hex": "#C219FA",
    "name": "#C219FA",
    "blackContrast": 4.81,
    "whiteContrast": 4.36,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
]
Semantic groups
[
  "han purple palette",
  "generated palette",
  "purple palette",
  "green palette",
  "blue palette",
  "gray palette",
  "vibrant palette",
  "light palette",
  "neutral palette",
  "cool palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion",
  "wellness and botanical palettes",
  "calm digital interfaces"
]
CSS variables
"--palette-han-purple-primary: #5218FA;\n--palette-han-purple-secondary: #C2FA19;\n--palette-han-purple-surface: #1951FA;\n--palette-han-purple-background: #C219FA;\n--palette-han-purple-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "han-purple",
  "name": "Han Purple Palette",
  "type": "generated",
  "sourceColor": "han-purple",
  "description": "Generated palette built from Han Purple, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Han Purple Palette combines primary #5218FA, secondary #C2FA19, surface #1951FA, background #C219FA, 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": [
    "han purple palette",
    "generated palette",
    "purple palette",
    "green palette",
    "blue palette",
    "gray palette",
    "vibrant palette",
    "light palette",
    "neutral palette",
    "cool palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion",
    "wellness and botanical palettes",
    "calm digital interfaces"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#5218FA",
      "slug": "han-purple",
      "name": "Han Purple",
      "rgb": [
        82,
        24,
        250
      ],
      "hsl": [
        255,
        96,
        54
      ],
      "cmyk": [
        67,
        90,
        0,
        2
      ],
      "family": "purple",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.0935,
      "contrast": {
        "black": 2.87,
        "white": 7.32
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/han-purple/"
    },
    {
      "role": "secondary",
      "hex": "#C2FA19",
      "slug": null,
      "name": "#C2FA19",
      "rgb": [
        194,
        250,
        25
      ],
      "hsl": [
        75,
        96,
        54
      ],
      "cmyk": [
        22,
        0,
        90,
        2
      ],
      "family": "green",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.7991,
      "contrast": {
        "black": 16.98,
        "white": 1.24
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/hex/c2fa19/"
    },
    {
      "role": "surface",
      "hex": "#1951FA",
      "slug": null,
      "name": "#1951FA",
      "rgb": [
        25,
        81,
        250
      ],
      "hsl": [
        225,
        96,
        54
      ],
      "cmyk": [
        90,
        68,
        0,
        2
      ],
      "family": "blue",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.1299,
      "contrast": {
        "black": 3.6,
        "white": 5.84
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#C219FA",
      "slug": null,
      "name": "#C219FA",
      "rgb": [
        194,
        25,
        250
      ],
      "hsl": [
        285,
        96,
        54
      ],
      "cmyk": [
        22,
        90,
        0,
        2
      ],
      "family": "purple",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.1907,
      "contrast": {
        "black": 4.81,
        "white": 4.36
      },
      "wcag": {
        "AA": [
          "#000000"
        ],
        "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": "#5218FA",
      "name": "Han Purple"
    },
    {
      "role": "secondary",
      "hex": "#C2FA19",
      "name": "#C2FA19"
    },
    {
      "role": "surface",
      "hex": "#1951FA",
      "name": "#1951FA"
    },
    {
      "role": "background",
      "hex": "#C219FA",
      "name": "#C219FA"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#5218FA",
      "name": "Han Purple",
      "blackContrast": 2.87,
      "whiteContrast": 7.32,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF"
      ]
    },
    {
      "role": "secondary",
      "hex": "#C2FA19",
      "name": "#C2FA19",
      "blackContrast": 16.98,
      "whiteContrast": 1.24,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    },
    {
      "role": "surface",
      "hex": "#1951FA",
      "name": "#1951FA",
      "blackContrast": 3.6,
      "whiteContrast": 5.84,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "background",
      "hex": "#C219FA",
      "name": "#C219FA",
      "blackContrast": 4.81,
      "whiteContrast": 4.36,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    }
  ],
  "cssVariables": "--palette-han-purple-primary: #5218FA;\n--palette-han-purple-secondary: #C2FA19;\n--palette-han-purple-surface: #1951FA;\n--palette-han-purple-background: #C219FA;\n--palette-han-purple-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/han-purple.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/han-purple.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/han-purple/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/han-purple.json"
}