Good Karma to Galactic Compass Gradient
CSS
background: linear-gradient(90deg, #333c76 0%, #48357b 100%);
From Good Karma (#333C76) to Galactic Compass (#48357B). The two hues are 24° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Good Karma | #333C76 | 51, 60, 118 | 232°, 40%, 33% | 57, 49, 0, 54 | |
| 25% (near Good Karma) | #383A77 | 56, 58, 119 | 238°, 36%, 34% | 53, 51, 0, 53 | |
| 50% (near Evening Magic) | #3E3979 | 62, 57, 121 | 245°, 36%, 35% | 49, 53, 0, 53 | |
| 75% (near Galactic Compass) | #43377A | 67, 55, 122 | 251°, 38%, 35% | 45, 55, 0, 52 | |
| Galactic Compass | #48357B | 72, 53, 123 | 256°, 40%, 35% | 41, 57, 0, 52 |
Halfway along, the gradient is #3E3979, closest to the named color Evening Magic. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.01:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #333c76, #48357b) - Diagonal:
linear-gradient(135deg, #333c76, #48357b) - Radial, from the center out:
radial-gradient(circle, #333c76, #48357b) - Tailwind CSS:
bg-gradient-to-r from-[#333c76] to-[#48357b]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Good Karma to Galactic Compass gradient?
It starts at #333C76 (Good Karma) and ends at #48357B (Galactic Compass), with #3E3979 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #333c76, #48357b) runs from Galactic Compass on the left to Good Karma on the right.