Captain Kirk to Gecko’s Dream Gradient
CSS
background: linear-gradient(90deg, #9b870c 0%, #669900 100%);
From Captain Kirk (#9B870C) to Gecko’s Dream (#669900). The two hues are 28° 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 | |
|---|---|---|---|---|---|
| Captain Kirk | #9B870C | 155, 135, 12 | 52°, 86%, 33% | 0, 13, 92, 39 | |
| 25% (near Captain Kirk) | #8E8C09 | 142, 140, 9 | 59°, 88%, 30% | 0, 1, 94, 44 | |
| 50% (near BioShock) | #819006 | 129, 144, 6 | 67°, 92%, 29% | 10, 0, 96, 44 | |
| 75% (near Green Thumb) | #739503 | 115, 149, 3 | 74°, 96%, 30% | 23, 0, 98, 42 | |
| Gecko’s Dream | #669900 | 102, 153, 0 | 80°, 100%, 30% | 33, 0, 100, 40 |
Halfway along, the gradient is #819006, closest to the named color BioShock. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black 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.04:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #9b870c, #669900) - Diagonal:
linear-gradient(135deg, #9b870c, #669900) - Radial, from the center out:
radial-gradient(circle, #9b870c, #669900) - Tailwind CSS:
bg-gradient-to-r from-[#9b870c] to-[#669900]
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 Captain Kirk to Gecko’s Dream gradient?
It starts at #9B870C (Captain Kirk) and ends at #669900 (Gecko’s Dream), with #819006 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #9b870c, #669900) runs from Gecko’s Dream on the left to Captain Kirk on the right.