HSL(118, 20%, 54%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(118,20%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(118, 20%, 54%) | color: hsl(118, 20%, 54%) | |
| HEX | #74A172 | color: #74A172 | |
| RGB | rgb(116, 161, 114) | color: rgb(116, 161, 114) | |
| CMYK | cmyk(28%, 0%, 29%, 37%) | — | |
| HSV | hsv(117, 29%, 63%) | — | |
| HWB | hwb(117 45% 37%) | color: hwb(117 45% 37%) | |
| OKLCH | oklch(0.6638 0.084 143.54) | color: oklch(0.6638 0.084 143.54) | |
| Lab | lab(62.01 -24.76 19.73) | color: lab(62.01 -24.76 19.73) | |
| LCH | lch(62.01 31.66 141.45) | color: lch(62.01 31.66 141.45) |
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)
#87887D — rgb(135, 136, 125)
Deuteranopia (Green-blind)
#858280 — rgb(133, 130, 128)
Tritanopia (Blue-blind)
#768688 — rgb(118, 134, 136)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(118, 20%, 54%);
text
color: hsl(118, 20%, 54%);
border
border: 2px solid hsl(118, 20%, 54%);
gradient light
background: linear-gradient(to right, hsl(118, 20%, 74%), hsl(118, 20%, 54%));
gradient dark
background: linear-gradient(to right, hsl(118, 20%, 54%), hsl(118, 20%, 34%))
hex
background-color: #74A172;
tailwind
bg-[hsl(118,20%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(118, 20%, 54%, 0.4);
css variable
--color-primary: hsl(118, 20%, 54%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(118, 20%, 54%)?
HEX: #74A172 | RGB: rgb(116, 161, 114) | CMYK: 28%, 0%, 29%, 37% | HSV: 117°, 29%, 63%. Copy any format from the conversion table above.
What colors go well with #74A172?
The complementary color is HSL(298, 20%, 54%). For a triadic harmony, use hues 118°, 238°, and 358°. For analogous combinations, try hues 88° and 148°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(118, 20%, 54%) in CSS?
As HSL: color: hsl(118, 20%, 54%); — As HEX: color: #74A172; — As RGB: color: rgb(116, 161, 114); — Tailwind CSS: bg-[hsl(118,20%,54%)] — CSS variable: --color-primary: hsl(118, 20%, 54%);