{"datasetVersion":"1.0.0","slug":"han-purple","name":"Han Purple","hex":"#5218FA","rgb":[82,24,250],"hsl":[255,96,54],"luminance":0.0935,"contrast":{"black":2.87,"white":7.32},"ratings":{"blackText":"fail","whiteText":"AAA"},"wcag":{"AA":["#FFFFFF","#F5F5F5"],"AAA":["#FFFFFF"]},"narrative":"Han Purple has strong WCAG behavior because it reaches AAA contrast with #FFFFFF text. It can be used for normal text, badges, compact UI, and interface components when paired with the listed foreground colors.","warnings":["Very dark surfaces need careful hover, focus, and disabled-state treatment.","Avoid placing text over photos, gradients, or translucent overlays without retesting the final composite color."],"safePairings":{"text":[{"label":"White text","hex":"#FFFFFF","ratio":7.32,"rating":"AAA"},{"label":"Soft white text","hex":"#F5F5F5","ratio":6.71,"rating":"AA"}],"backgrounds":[{"label":"White","hex":"#FFFFFF","ratio":7.32,"rating":"AAA"},{"label":"White Smoke","hex":"#F5F5F5","ratio":6.71,"rating":"AA"}],"borders":[{"label":"#B49EF5","hex":"#B49EF5","ratio":3.19,"rating":"large-text-only"}]},"accessibilityAlternatives":[],"componentGuidance":[{"component":"Buttons","guidance":"Use only with AA-passing foreground text and visible focus states."},{"component":"Badges","guidance":"Works best with bold labels and enough padding around text."},{"component":"Cards","guidance":"Use as a surface when paired with a tested text color and clear border."},{"component":"Alerts","guidance":"Pair with icons or labels; do not rely on color alone."},{"component":"Form fields","guidance":"Use for borders or focus rings only when contrast remains visible."}],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/wcag/han-purple.json","https://www.colorsencyclopedia.com/api/colors/han-purple.json"],"url":"https://www.colorsencyclopedia.com/wcag/han-purple/","colorUrl":"https://www.colorsencyclopedia.com/colors/han-purple/","apiUrl":"https://www.colorsencyclopedia.com/api/wcag/han-purple.json","generatedAt":"2026-07-23T19:04:03.409Z"}
