---
title: "Palette v21"
url: https://daily.dev/posts/palette-v21-3a9mrxaef
source_url: https://chrisbanes.me/posts/palette-v21
type: article
source: "Chris Banes"
published: 2026-07-05T07:13:34.251Z
updated: 2026-07-05T07:15:18.734Z
tags: ["java", "android"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Palette v21

**[Chris Banes](https://daily.dev/sources/chrisbanes)** · 3 min read · 0 upvotes · 0 comments

## Summary

Covers the updated Palette API introduced in Android Lollipop (v21), explaining how to extract colors from Bitmap images both synchronously and asynchronously. Details the six swatch types (Vibrant, Dark Vibrant, Light Vibrant, Muted, Dark Muted, Light Muted), how to use Swatch methods for RGB, HSL, and text colors aligned with Material Design typography standards, how to handle null swatches, how to access all swatches for custom color selection, and guidance on choosing optimal palette sizes for different image types like avatars (24-32) and landscapes (8-16).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://chrisbanes.me/posts/palette-v21>

---

Tags: [#java](https://daily.dev/tags/java), [#android](https://daily.dev/tags/android)

[View this post on daily.dev](https://daily.dev/posts/palette-v21-3a9mrxaef)
