HSL(126, 20%, 23%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,20%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 20%, 23%) | color: hsl(126, 20%, 23%) | |
| HEX | #2F4631 | color: #2F4631 | |
| RGB | rgb(47, 70, 49) | color: rgb(47, 70, 49) | |
| CMYK | cmyk(33%, 0%, 30%, 73%) | — | |
| HSV | hsv(125, 33%, 27%) | — | |
| HWB | hwb(125 18% 73%) | color: hwb(125 18% 73%) | |
| OKLCH | oklch(0.3684 0.0458 146.74) | color: oklch(0.3684 0.0458 146.74) | |
| Lab | lab(27.31 -14 9.88) | color: lab(27.31 -14 9.88) | |
| LCH | lch(27.31 17.14 144.79) | color: lch(27.31 17.14 144.79) |
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)
#393936 — rgb(57, 57, 54)
Deuteranopia (Green-blind)
#383637 — rgb(56, 54, 55)
Tritanopia (Blue-blind)
#303A3B — rgb(48, 58, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 20%, 23%);
text
color: hsl(126, 20%, 23%);
border
border: 2px solid hsl(126, 20%, 23%);
gradient light
background: linear-gradient(to right, hsl(126, 20%, 43%), hsl(126, 20%, 23%));
gradient dark
background: linear-gradient(to right, hsl(126, 20%, 23%), hsl(126, 20%, 3%))
hex
background-color: #2F4631;
tailwind
bg-[hsl(126,20%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 20%, 23%, 0.4);
css variable
--color-primary: hsl(126, 20%, 23%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 20%, 23%)?
HEX: #2F4631 | RGB: rgb(47, 70, 49) | CMYK: 33%, 0%, 30%, 73% | HSV: 125°, 33%, 27%. Copy any format from the conversion table above.
What colors go well with #2F4631?
The complementary color is HSL(306, 20%, 23%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(126, 20%, 23%) in CSS?
As HSL: color: hsl(126, 20%, 23%); — As HEX: color: #2F4631; — As RGB: color: rgb(47, 70, 49); — Tailwind CSS: bg-[hsl(126,20%,23%)] — CSS variable: --color-primary: hsl(126, 20%, 23%);