HSL(127, 57%, 22%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(127,57%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 57%, 22%) | color: hsl(127, 57%, 22%) | |
| HEX | #185820 | color: #185820 | |
| RGB | rgb(24, 88, 32) | color: rgb(24, 88, 32) | |
| CMYK | cmyk(73%, 0%, 64%, 65%) | — | |
| HSV | hsv(128, 73%, 35%) | — | |
| HWB | hwb(128 9% 65%) | color: hwb(128 9% 65%) | |
| OKLCH | oklch(0.4065 0.1087 145.21) | color: oklch(0.4065 0.1087 145.21) | |
| Lab | lab(32.43 -33.01 26.25) | color: lab(32.43 -33.01 26.25) | |
| LCH | lch(32.43 42.17 141.51) | color: lch(32.43 42.17 141.51) |
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)
#34342E — rgb(52, 52, 46)
Deuteranopia (Green-blind)
#302B31 — rgb(48, 43, 49)
Tritanopia (Blue-blind)
#1B383B — rgb(27, 56, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 57%, 22%);
text
color: hsl(127, 57%, 22%);
border
border: 2px solid hsl(127, 57%, 22%);
gradient light
background: linear-gradient(to right, hsl(127, 57%, 42%), hsl(127, 57%, 22%));
gradient dark
background: linear-gradient(to right, hsl(127, 57%, 22%), hsl(127, 57%, 2%))
hex
background-color: #185820;
tailwind
bg-[hsl(127,57%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 57%, 22%, 0.4);
css variable
--color-primary: hsl(127, 57%, 22%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(127, 57%, 22%)?
HEX: #185820 | RGB: rgb(24, 88, 32) | CMYK: 73%, 0%, 64%, 65% | HSV: 128°, 73%, 35%. Copy any format from the conversion table above.
What colors go well with #185820?
The complementary color is HSL(307, 57%, 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, 57%, 22%) in CSS?
As HSL: color: hsl(127, 57%, 22%); — As HEX: color: #185820; — As RGB: color: rgb(24, 88, 32); — Tailwind CSS: bg-[hsl(127,57%,22%)] — CSS variable: --color-primary: hsl(127, 57%, 22%);