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": "pear-vs-peridot",
"type": "nearest",
"name": "Pear vs Peridot",
"verdict": "Pear and Peridot are visually related colors. Pear is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.35:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Pear and Peridot are different yellow colors with HEX values #D1E231 and #B4C424. According to Colors Encyclopedia, their RGB distance is 43.7, their contrast ratio is 1.35:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 43.7,
"contrastRatio": 1.35,
"colors": [
{
"slug": "pear",
"name": "Pear",
"hex": "#D1E231",
"rgb": [
209,
226,
49
],
"hsl": [
66,
75,
54
],
"cmyk": [
8,
0,
78,
11
],
"family": "yellow",
"temperature": "warm",
"tone": [
"vibrant"
],
"luminance": 0.6817,
"contrast": {
"black": 14.63,
"white": 1.44
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 14.63
},
"description": "Pear is #D1E231, a warm yellow color with vibrant character. Compared with Peridot, it is lighter and more saturated. Use it for natural palettes, wellness branding, and sustainability design, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/pear/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/pear.json"
},
{
"slug": "peridot",
"name": "Peridot",
"hex": "#B4C424",
"rgb": [
180,
196,
36
],
"hsl": [
66,
69,
45
],
"cmyk": [
8,
0,
82,
23
],
"family": "yellow",
"temperature": "warm",
"tone": [
"balanced"
],
"luminance": 0.4931,
"contrast": {
"black": 10.86,
"white": 1.93
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 10.86
},
"description": "Peridot is #B4C424, a warm yellow color with balanced character. Compared with Pear, it is darker and less saturated. Use it for jewel-tone palettes, luxury branding, and premium interface accents, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/peridot/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/peridot.json"
}
],
"differences": {
"rgbDistance": 43.7,
"contrastRatio": 1.35,
"hslDelta": {
"hue": 0,
"saturation": 6,
"lightness": 9
},
"luminanceDelta": 0.1886,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [],
"lighterColor": "Pear",
"moreSaturatedColor": "Pear"
},
"accessibility": {
"pairContrastRatio": 1.35,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Pear",
"background": "#D1E231",
"foreground": "#000000",
"label": "black text",
"ratio": 14.63
},
{
"color": "Peridot",
"background": "#B4C424",
"foreground": "#000000",
"label": "black text",
"ratio": 10.86
}
]
},
"useCases": {
"chooseFirstWhen": "Pear is better when the design needs vibrant yellow character, warm temperature, and the specific HEX value #D1E231.",
"chooseSecondWhen": "Peridot is better when the design needs balanced yellow character, warm temperature, and the specific HEX value #B4C424.",
"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/pear-vs-peridot.json",
"https://www.colorsencyclopedia.com/api/colors/pear.json",
"https://www.colorsencyclopedia.com/api/colors/peridot.json"
],
"url": "https://www.colorsencyclopedia.com/compare/pear-vs-peridot/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/pear-vs-peridot.json"
}