| Primary Purpose | Retrieves palette colors using a simpler logic and is marked as deprecated. | Retrieves colors with more advanced features, including support for variables, themes, and modes. |
| Input Parameters | hue, shade, theme, and transparency. | A broader set of parameters: theme, variable, dark, light, hue, shade, offset, and transparency. |
| Mode Support (Light/Dark) | Does not support light or dark mode-specific configurations. | Supports light and dark modes via dark and light configuration objects. |
| Variable Support | Does not support dynamic variable-based color resolution. | Supports resolving colors from variables (e.g., theme.colors.variables). |
| Default Shade Handling | Uses a default shade of 600 if no shade is provided. | Dynamically determines default shades based on theme mode and transparency (e.g., 500 for dark mode). |
| Transparency Handling | Uses polished's rgba to add transparency to colors. | Supports both polished's rgba and theme-specific opacity scales (theme.opacity). |
| Palette Resolution | Fallbacks to default palette from DEFAULT_THEME or PALETTE_V8. | Dynamically resolves colors from theme.palette or generates new scales for custom colors. |
| Custom Color Scale Support | Does not support the generation of custom scales. | Supports generating 12-step custom color scales using color2k and target contrast ratios. |
| Error Handling | Simpler error-handling logic (e.g., returns undefined if the shade is invalid). | Includes more robust error handling with explicit messages for invalid inputs or variables. |
| Memoization | Uses lodash.memoize with a simpler key generation logic. | Uses lodash.memoize with a more complex key generation logic, accounting for modes and variables. |
| Deprecation Status | Marked as deprecated in the documentation. | The recommended and actively maintained replacement for getColorV8. |