HSL(118, 30%, 25%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(118,30%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(118, 30%, 25%) | color: hsl(118, 30%, 25%) | |
| HEX | #2E532D | color: #2E532D | |
| RGB | rgb(46, 83, 45) | color: rgb(46, 83, 45) | |
| CMYK | cmyk(45%, 0%, 46%, 67%) | — | |
| HSV | hsv(118, 46%, 33%) | — | |
| HWB | hwb(118 18% 67%) | color: hwb(118 18% 67%) | |
| OKLCH | oklch(0.4036 0.0753 143.48) | color: oklch(0.4036 0.0753 143.48) | |
| Lab | lab(31.71 -22.2 18.2) | color: lab(31.71 -22.2 18.2) | |
| LCH | lch(31.71 28.71 140.65) | color: lch(31.71 28.71 140.65) |
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)
#3E3E36 — rgb(62, 62, 54)
Deuteranopia (Green-blind)
#3C3938 — rgb(60, 57, 56)
Tritanopia (Blue-blind)
#303D3F — rgb(48, 61, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(118, 30%, 25%);
text
color: hsl(118, 30%, 25%);
border
border: 2px solid hsl(118, 30%, 25%);
gradient light
background: linear-gradient(to right, hsl(118, 30%, 45%), hsl(118, 30%, 25%));
gradient dark
background: linear-gradient(to right, hsl(118, 30%, 25%), hsl(118, 30%, 5%))
hex
background-color: #2E532D;
tailwind
bg-[hsl(118,30%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(118, 30%, 25%, 0.4);
css variable
--color-primary: hsl(118, 30%, 25%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(118, 30%, 25%)?
HEX: #2E532D | RGB: rgb(46, 83, 45) | CMYK: 45%, 0%, 46%, 67% | HSV: 118°, 46%, 33%. Copy any format from the conversion table above.
What colors go well with #2E532D?
The complementary color is HSL(298, 30%, 25%). 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, 30%, 25%) in CSS?
As HSL: color: hsl(118, 30%, 25%); — As HEX: color: #2E532D; — As RGB: color: rgb(46, 83, 45); — Tailwind CSS: bg-[hsl(118,30%,25%)] — CSS variable: --color-primary: hsl(118, 30%, 25%);