<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/make-beautiful-gradients--gv2msb26" -->

---
title: Make Beautiful Gradients | daily.dev
description: In the RGB color space, we create colors by mixing three channels: red, green, and blue. All three channels converge towards their middle value, 127.5. By...
canonical: https://daily.dev/posts/make-beautiful-gradients--gv2msb26
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Make Beautiful Gradients | daily.dev
og:description: In the RGB color space, we create colors by mixing three channels: red, green, and blue. All three channels converge towards their middle value, 127.5. By...
og:url: https://daily.dev/posts/make-beautiful-gradients--gv2msb26
og:image: https://api.daily.dev/og/posts/_gv2mSb26.png
og:image:alt: Make Beautiful Gradients
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Make Beautiful Gradients

**[Josh W Comeau](https://daily.dev/sources/joshwcomeau)** · 5 min read · 167 upvotes · 6 comments

## Summary

In the RGB color space, we create colors by mixing three channels: red, green, and blue. All three channels converge towards their middle value, 127.5. By mixing two highly-saturated colors together, we wind up with gray. What if there was a way to mix only the pigment and keep the saturation consistent?

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.joshwcomeau.com/css/make-beautiful-gradients/>

## Community discussion

Top comments from developers on daily.dev.

**@lorezz** · 1 upvotes

> Nice gradients, the author also created a gradient's generator to play with

**@chrismachinery** · 1 upvotes

> Worth the read for the info and he takes the hard work out of the solution to crap gradients.

**@devguy51** · 1 upvotes

> Love it, saved so much of my time. I also love the gradient generator.

**@fxannguyen201** · 0 upvotes

> Nice

**@mrakcw** · 0 upvotes

> Like it 👌

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/make-beautiful-gradients--gv2msb26)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Make Beautiful Gradients","url":"https://daily.dev/posts/make-beautiful-gradients--gv2msb26","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/make-beautiful-gradients--gv2msb26"},"datePublished":"2022-01-11T17:47:19.919Z","dateModified":"2022-01-11T17:47:19.927Z","description":"In the RGB color space, we create colors by mixing three channels: red, green, and blue. All three channels converge towards their middle value, 127.5. By...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/16b8acbb2838733193194c0238a5280e","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/16b8acbb2838733193194c0238a5280e","isAccessibleForFree":true,"articleSection":"Josh W Comeau","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Josh W Comeau","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a121572d03c40a2bff9e8ed0f0792b5","url":"https://daily.dev/sources/joshwcomeau"},"commentCount":6,"discussionUrl":"https://daily.dev/posts/make-beautiful-gradients--gv2msb26","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":167},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"keywords":"css","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Josh W Comeau","item":"https://daily.dev/sources/joshwcomeau"},{"@type":"ListItem","position":3,"name":"Make Beautiful Gradients"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/make-beautiful-gradients--gv2msb26","comment":[{"@type":"Comment","text":"Nice gradients, the author also created a gradient’s generator to play with","datePublished":"2022-01-12T06:25:47.797Z","dateModified":"2022-01-12T06:28:50.072Z","url":"https://daily.dev/posts/_gv2mSb26#c-v7BiwIzlr","author":{"@type":"Person","name":"lorezz","url":"https://daily.dev/lorezz","image":"https://avatars0.githubusercontent.com/u/1153066?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Worth the read for the info and he takes the hard work out of the solution to crap gradients.","datePublished":"2022-01-11T20:37:33.704Z","url":"https://daily.dev/posts/_gv2mSb26#c-AL_CG3-6L","author":{"@type":"Person","name":"Chris Wible","url":"https://daily.dev/chrismachinery","image":"https://lh3.googleusercontent.com/a-/AOh14Gj583-1Uis_WTZUPsSuWZmUsW1s7oSJJ9VF0d_r=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Love it, saved so much of my time. I also love the gradient generator.","datePublished":"2022-01-15T00:33:50.114Z","url":"https://daily.dev/posts/_gv2mSb26#c-jS1jz8jlA","author":{"@type":"Person","name":"Akul Goel","url":"https://daily.dev/devguy51","image":"https://lh3.googleusercontent.com/a-/AOh14GhbzjX3iU6bqjbhv4dm9KaLoKPnyHYdYKjIF-hx=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Nice","datePublished":"2022-02-25T11:40:28.401Z","url":"https://daily.dev/posts/_gv2mSb26#c-77jlHsSi2","author":{"@type":"Person","name":"An Nguyen Thanh","url":"https://daily.dev/fxannguyen201","image":"https://avatars.githubusercontent.com/u/80932055?v=4"}},{"@type":"Comment","text":"Like it 👌","datePublished":"2022-01-12T14:36:35.469Z","url":"https://daily.dev/posts/_gv2mSb26#c-zjJU-3kMw","author":{"@type":"Person","name":"MrakCw","url":"https://daily.dev/mrakcw","image":"https://media.daily.dev/image/upload/f_auto/v1639233433/avatars/VJzGGk9A8mHkMUHMJKLrv"}}]}
```

