HSL(127, 20%, 22%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(127,20%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 20%, 22%) | color: hsl(127, 20%, 22%) | |
| HEX | #2D432F | color: #2D432F | |
| RGB | rgb(45, 67, 47) | color: rgb(45, 67, 47) | |
| CMYK | cmyk(33%, 0%, 30%, 74%) | — | |
| HSV | hsv(125, 33%, 26%) | — | |
| HWB | hwb(125 17% 74%) | color: hwb(125 17% 74%) | |
| OKLCH | oklch(0.3581 0.044 146.87) | color: oklch(0.3581 0.044 146.87) | |
| Lab | lab(26.09 -13.47 9.46) | color: lab(26.09 -13.47 9.46) | |
| LCH | lch(26.09 16.46 144.92) | color: lch(26.09 16.46 144.92) |
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)
#373734 — rgb(55, 55, 52)
Deuteranopia (Green-blind)
#353435 — rgb(53, 52, 53)
Tritanopia (Blue-blind)
#2E3839 — rgb(46, 56, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 20%, 22%);
text
color: hsl(127, 20%, 22%);
border
border: 2px solid hsl(127, 20%, 22%);
gradient light
background: linear-gradient(to right, hsl(127, 20%, 42%), hsl(127, 20%, 22%));
gradient dark
background: linear-gradient(to right, hsl(127, 20%, 22%), hsl(127, 20%, 2%))
hex
background-color: #2D432F;
tailwind
bg-[hsl(127,20%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 20%, 22%, 0.4);
css variable
--color-primary: hsl(127, 20%, 22%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(127, 20%, 22%)?
HEX: #2D432F | RGB: rgb(45, 67, 47) | CMYK: 33%, 0%, 30%, 74% | HSV: 125°, 33%, 26%. Copy any format from the conversion table above.
What colors go well with #2D432F?
The complementary color is HSL(307, 20%, 22%). For a triadic harmony, use hues 127°, 247°, and 7°. For analogous combinations, try hues 97° and 157°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(127, 20%, 22%) in CSS?
As HSL: color: hsl(127, 20%, 22%); — As HEX: color: #2D432F; — As RGB: color: rgb(45, 67, 47); — Tailwind CSS: bg-[hsl(127,20%,22%)] — CSS variable: --color-primary: hsl(127, 20%, 22%);