HSL(126, 26%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,26%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 26%, 31%) | color: hsl(126, 26%, 31%) | |
| HEX | #3A643F | color: #3A643F | |
| RGB | rgb(58, 100, 63) | color: rgb(58, 100, 63) | |
| CMYK | cmyk(42%, 0%, 37%, 61%) | — | |
| HSV | hsv(127, 42%, 39%) | — | |
| HWB | hwb(127 23% 61%) | color: hwb(127 23% 61%) | |
| OKLCH | oklch(0.4617 0.0759 147) | color: oklch(0.4617 0.0759 147) | |
| Lab | lab(38.5 -23.37 16.51) | color: lab(38.5 -23.37 16.51) | |
| LCH | lch(38.5 28.61 144.76) | color: lch(38.5 28.61 144.76) |
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)
#4C4D48 — rgb(76, 77, 72)
Deuteranopia (Green-blind)
#4A474A — rgb(74, 71, 74)
Tritanopia (Blue-blind)
#3C4F51 — rgb(60, 79, 81)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 26%, 31%);
text
color: hsl(126, 26%, 31%);
border
border: 2px solid hsl(126, 26%, 31%);
gradient light
background: linear-gradient(to right, hsl(126, 26%, 51%), hsl(126, 26%, 31%));
gradient dark
background: linear-gradient(to right, hsl(126, 26%, 31%), hsl(126, 26%, 11%))
hex
background-color: #3A643F;
tailwind
bg-[hsl(126,26%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 26%, 31%, 0.4);
css variable
--color-primary: hsl(126, 26%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 26%, 31%)?
HEX: #3A643F | RGB: rgb(58, 100, 63) | CMYK: 42%, 0%, 37%, 61% | HSV: 127°, 42%, 39%. Copy any format from the conversion table above.
What colors go well with #3A643F?
The complementary color is HSL(306, 26%, 31%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(126, 26%, 31%) in CSS?
As HSL: color: hsl(126, 26%, 31%); — As HEX: color: #3A643F; — As RGB: color: rgb(58, 100, 63); — Tailwind CSS: bg-[hsl(126,26%,31%)] — CSS variable: --color-primary: hsl(126, 26%, 31%);