HSL(126, 40%, 12%)
Very Dark Green — Green color
Adjust Color
Color Information
Color Name
Very Dark Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,40%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 40%, 12%) | color: hsl(126, 40%, 12%) | |
| HEX | #122B15 | color: #122B15 | |
| RGB | rgb(18, 43, 21) | color: rgb(18, 43, 21) | |
| CMYK | cmyk(58%, 0%, 51%, 83%) | — | |
| HSV | hsv(127, 58%, 17%) | — | |
| HWB | hwb(127 7% 83%) | color: hwb(127 7% 83%) | |
| OKLCH | oklch(0.2619 0.0511 146.53) | color: oklch(0.2619 0.0511 146.53) | |
| Lab | lab(15.01 -15.69 11.41) | color: lab(15.01 -15.69 11.41) | |
| LCH | lch(15.01 19.4 143.97) | color: lch(15.01 19.4 143.97) |
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)
#1D1D1A — rgb(29, 29, 26)
Deuteranopia (Green-blind)
#1B1A1C — rgb(27, 26, 28)
Tritanopia (Blue-blind)
#131F1F — rgb(19, 31, 31)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 40%, 12%);
text
color: hsl(126, 40%, 12%);
border
border: 2px solid hsl(126, 40%, 12%);
gradient light
background: linear-gradient(to right, hsl(126, 40%, 32%), hsl(126, 40%, 12%));
gradient dark
background: linear-gradient(to right, hsl(126, 40%, 12%), hsl(126, 40%, 0%))
hex
background-color: #122B15;
tailwind
bg-[hsl(126,40%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 40%, 12%, 0.4);
css variable
--color-primary: hsl(126, 40%, 12%);
Related Colors
Use Cases for Very Dark Green
Frequently Asked Questions
What are all the color codes for HSL(126, 40%, 12%)?
HEX: #122B15 | RGB: rgb(18, 43, 21) | CMYK: 58%, 0%, 51%, 83% | HSV: 127°, 58%, 17%. Copy any format from the conversion table above.
What colors go well with #122B15?
The complementary color is HSL(306, 40%, 12%). 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, 40%, 12%) in CSS?
As HSL: color: hsl(126, 40%, 12%); — As HEX: color: #122B15; — As RGB: color: rgb(18, 43, 21); — Tailwind CSS: bg-[hsl(126,40%,12%)] — CSS variable: --color-primary: hsl(126, 40%, 12%);