Menu

Mauve color codes: HEX, RGB, HSL, OKLCH and CSS variables
πŸ“°

Mauve color codes: HEX, RGB, HSL, OKLCH and CSS variables

DEV Community: cssΒ·owen wangΒ·10 days ago
#hYqs1J3k
#devtocss#devto#dev#eacbff#mauve
Long article (682 words) β€” no AI summary yet.
Reading 0:00
15s threshold

"Mauve" is one of those color names everyone uses and nobody agrees on. Ask a designer and you'll get a pale lilac. Ask someone picking a lipstick and you'll get a muted rose. If you've ever pasted color: mauve into a stylesheet, you've also found out that the browser ignores it.

Here are the values I use, where they come from, and how to make them work in a real UI.

The short answer

Name HEX RGB HSL OKLCH

Mauve #E0B0FF 224, 176, 255 hsl(276, 100%, 85%) oklch(82.7% 0.119 311.6)

Dusty mauve #C0AFC5 192, 175, 197 hsl(286, 16%, 73%) oklch(77.5% 0.036 318.5)

Dark mauve #874C62 135, 76, 98 hsl(338, 28%, 41%) oklch(49.3% 0.084 356.8)

Why mauve has more than one value

There is no official mauve. #E0B0FF is the "mallow" sample from Maerz and Paul's A Dictionary of Color (1930), and it's what most color references return for "mauve". It's a pale purple with a pink cast.

The other meaning is pinker.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.