colorsBoth named color records with HEX, RGB, HSL, CMYK, luminance, WCAG, and links
differencesRGB distance, HSL deltas, luminance delta, contrast, and shared attributes
accessibilityPair contrast and safer text choices for each color
useCasesWhen to choose each color and when to use them together
relatedApiMachine-readable comparison and color endpoints
Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "han-purple-vs-blue-violet",
"type": "nearest",
"name": "Han Purple vs Blue Violet",
"verdict": "Han Purple and Blue Violet are visually related colors. Blue Violet is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.23:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Han Purple and Blue Violet are different purple colors with HEX values #5218FA and #8A2BE2. According to Colors Encyclopedia, their RGB distance is 63.8, their contrast ratio is 1.23:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 63.8,
"contrastRatio": 1.23,
"colors": [
{
"slug": "han-purple",
"name": "Han Purple",
"hex": "#5218FA",
"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"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 7.32
},
"description": "Han Purple is #5218FA, a cool purple color with vibrant character. Compared with Blue Violet, it is darker and more saturated. Use it for historical references, pigment palettes, and cultural color systems, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/han-purple/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/han-purple.json"
},
{
"slug": "blue-violet",
"name": "Blue Violet",
"hex": "#8A2BE2",
"rgb": [
138,
43,
226
],
"hsl": [
271,
76,
53
],
"cmyk": [
39,
81,
0,
11
],
"family": "purple",
"temperature": "cool",
"tone": [
"vibrant"
],
"luminance": 0.1262,
"contrast": {
"black": 3.52,
"white": 5.96
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": []
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 5.96
},
"description": "Blue Violet is #8A2BE2, a cool purple color with vibrant character. Compared with Han Purple, it is lighter and less saturated. Use it for web design, css color systems, and ui prototyping, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/blue-violet/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/blue-violet.json"
}
],
"differences": {
"rgbDistance": 63.8,
"contrastRatio": 1.23,
"hslDelta": {
"hue": 16,
"saturation": 20,
"lightness": 1
},
"luminanceDelta": 0.0327,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [
"vibrant"
],
"lighterColor": "Blue Violet",
"moreSaturatedColor": "Han Purple"
},
"accessibility": {
"pairContrastRatio": 1.23,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Han Purple",
"background": "#5218FA",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 7.32
},
{
"color": "Blue Violet",
"background": "#8A2BE2",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 5.96
}
]
},
"useCases": {
"chooseFirstWhen": "Han Purple is better when the design needs vibrant purple character, cool temperature, and the specific HEX value #5218FA.",
"chooseSecondWhen": "Blue Violet is better when the design needs vibrant purple character, cool temperature, and the specific HEX value #8A2BE2.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
},
"relatedApi": [
"https://www.colorsencyclopedia.com/api/compare/han-purple-vs-blue-violet.json",
"https://www.colorsencyclopedia.com/api/colors/han-purple.json",
"https://www.colorsencyclopedia.com/api/colors/blue-violet.json"
],
"url": "https://www.colorsencyclopedia.com/compare/han-purple-vs-blue-violet/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/han-purple-vs-blue-violet.json"
}