HSL(91, 90%, 17%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(91,90%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(91, 90%, 17%) | color: hsl(91, 90%, 17%) | |
| HEX | #2A5204 | color: #2A5204 | |
| RGB | rgb(42, 82, 4) | color: rgb(42, 82, 4) | |
| CMYK | cmyk(49%, 0%, 95%, 68%) | — | |
| HSV | hsv(91, 95%, 32%) | — | |
| HWB | hwb(91 2% 68%) | color: hwb(91 2% 68%) | |
| OKLCH | oklch(0.3937 0.1108 134.44) | color: oklch(0.3937 0.1108 134.44) | |
| Lab | lab(30.72 -27.57 36.48) | color: lab(30.72 -27.57 36.48) | |
| LCH | lch(30.72 45.73 127.08) | color: lch(30.72 45.73 127.08) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#3B3C17 — rgb(59, 60, 23)
Deuteranopia (Green-blind)
#39361B — rgb(57, 54, 27)
Tritanopia (Blue-blind)
#2C2629 — rgb(44, 38, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(91, 90%, 17%);
text
color: hsl(91, 90%, 17%);
border
border: 2px solid hsl(91, 90%, 17%);
gradient light
background: linear-gradient(to right, hsl(91, 90%, 37%), hsl(91, 90%, 17%));
gradient dark
background: linear-gradient(to right, hsl(91, 90%, 17%), hsl(91, 90%, 0%))
hex
background-color: #2A5204;
tailwind
bg-[hsl(91,90%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(91, 90%, 17%, 0.4);
css variable
--color-primary: hsl(91, 90%, 17%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(91, 90%, 17%)?
HEX: #2A5204 | RGB: rgb(42, 82, 4) | CMYK: 49%, 0%, 95%, 68% | HSV: 91°, 95%, 32%. Copy any format from the conversion table above.
What colors go well with #2A5204?
The complementary color is HSL(271, 90%, 17%). For a triadic harmony, use hues 91°, 211°, and 331°. For analogous combinations, try hues 61° and 121°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(91, 90%, 17%) in CSS?
As HSL: color: hsl(91, 90%, 17%); — As HEX: color: #2A5204; — As RGB: color: rgb(42, 82, 4); — Tailwind CSS: bg-[hsl(91,90%,17%)] — CSS variable: --color-primary: hsl(91, 90%, 17%);