Color and Design Tools
Best text color (black or white) for a background hex color, with contrast ratios and WCAG AA/AAA results for both.
- Category
- Data & research
- Starting price
- $0.02
- Paid calls · 30 days
- 16
- Unique payers · 30 days
- 16
Paid endpoints
8 endpoints, sorted by usage. Prices are per request.
- GET/accessible-text-color
Best text color (black or white) for a background hex color, with contrast ratios and WCAG AA/AAA results for both.
$0.02Base2calls / 30d - GET/color-adjust
Lighten, darken, saturate, desaturate or rotate the hue of a hex color by an exact number of HSL points.
$0.02Base2calls / 30d - GET/color-blind-sim
Simulate protanopia, deuteranopia and tritanopia on a color, or on a text/background pair with the contrast that remains.
$0.02Base2calls / 30d - GET/color-convert
Convert a hex color to RGB, HSL, HSV and CMYK with CSS strings and relative luminance, exactly.
$0.02Base2calls / 30d - GET/color-mix
Mix two hex colors at a ratio in sRGB or in linear light (physically correct), returning the blended hex.
$0.02Base2calls / 30d - GET/contrast-fix
Adjust a text color's lightness just enough to reach a WCAG contrast target (4.5, 3 or 7) on a background, keeping its hue.
$0.02Base2calls / 30d - GET/gradient-steps
Evenly spaced color steps between two hex colors, in sRGB or linear light, for charts, heatmaps and gradients.
$0.02Base2calls / 30d - GET/palette-generate
Generate a color palette from a base hex color: complementary, analogous, triadic, tetradic, split-complementary or monochrome.
$0.02Base2calls / 30d