HSL(112, 20%, 45%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(112,20%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(112, 20%, 45%) | color: hsl(112, 20%, 45%) | |
| HEX | #628A5C | color: #628A5C | |
| RGB | rgb(98, 138, 92) | color: rgb(98, 138, 92) | |
| CMYK | cmyk(29%, 0%, 33%, 46%) | — | |
| HSV | hsv(112, 33%, 54%) | — | |
| HWB | hwb(112 36% 46%) | color: hwb(112 36% 46%) | |
| OKLCH | oklch(0.5913 0.0816 141.29) | color: oklch(0.5913 0.0816 141.29) | |
| Lab | lab(53.54 -23.35 20.33) | color: lab(53.54 -23.35 20.33) | |
| LCH | lch(53.54 30.96 138.96) | color: lch(53.54 30.96 138.96) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#737467 — rgb(115, 116, 103)
Deuteranopia (Green-blind)
#716E6A — rgb(113, 110, 106)
Tritanopia (Blue-blind)
#647072 — rgb(100, 112, 114)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(112, 20%, 45%);
text
color: hsl(112, 20%, 45%);
border
border: 2px solid hsl(112, 20%, 45%);
gradient light
background: linear-gradient(to right, hsl(112, 20%, 65%), hsl(112, 20%, 45%));
gradient dark
background: linear-gradient(to right, hsl(112, 20%, 45%), hsl(112, 20%, 25%))
hex
background-color: #628A5C;
tailwind
bg-[hsl(112,20%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(112, 20%, 45%, 0.4);
css variable
--color-primary: hsl(112, 20%, 45%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(112, 20%, 45%)?
HEX: #628A5C | RGB: rgb(98, 138, 92) | CMYK: 29%, 0%, 33%, 46% | HSV: 112°, 33%, 54%. Copy any format from the conversion table above.
What colors go well with #628A5C?
The complementary color is HSL(292, 20%, 45%). For a triadic harmony, use hues 112°, 232°, and 352°. For analogous combinations, try hues 82° and 142°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(112, 20%, 45%) in CSS?
As HSL: color: hsl(112, 20%, 45%); — As HEX: color: #628A5C; — As RGB: color: rgb(98, 138, 92); — Tailwind CSS: bg-[hsl(112,20%,45%)] — CSS variable: --color-primary: hsl(112, 20%, 45%);