HSL(126, 77%, 7%)
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,77%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 77%, 7%) | color: hsl(126, 77%, 7%) | |
| HEX | #042007 | color: #042007 | |
| RGB | rgb(4, 32, 7) | color: rgb(4, 32, 7) | |
| CMYK | cmyk(88%, 0%, 78%, 87%) | — | |
| HSV | hsv(126, 88%, 13%) | — | |
| HWB | hwb(126 2% 87%) | color: hwb(126 2% 87%) | |
| OKLCH | oklch(0.2148 0.0579 145.49) | color: oklch(0.2148 0.0579 145.49) | |
| Lab | lab(9.59 -16.58 11.16) | color: lab(9.59 -16.58 11.16) | |
| LCH | lch(9.59 19.99 146.06) | color: lch(9.59 19.99 146.06) |
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)
#10100D — rgb(16, 16, 13)
Deuteranopia (Green-blind)
#0F0C0F — rgb(15, 12, 15)
Tritanopia (Blue-blind)
#051213 — rgb(5, 18, 19)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 77%, 7%);
text
color: hsl(126, 77%, 7%);
border
border: 2px solid hsl(126, 77%, 7%);
gradient light
background: linear-gradient(to right, hsl(126, 77%, 27%), hsl(126, 77%, 7%));
gradient dark
background: linear-gradient(to right, hsl(126, 77%, 7%), hsl(126, 77%, 0%))
hex
background-color: #042007;
tailwind
bg-[hsl(126,77%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 77%, 7%, 0.4);
css variable
--color-primary: hsl(126, 77%, 7%);
Related Colors
Use Cases for Very Dark Green
Frequently Asked Questions
What are all the color codes for HSL(126, 77%, 7%)?
HEX: #042007 | RGB: rgb(4, 32, 7) | CMYK: 88%, 0%, 78%, 87% | HSV: 126°, 88%, 13%. Copy any format from the conversion table above.
What colors go well with #042007?
The complementary color is HSL(306, 77%, 7%). 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, 77%, 7%) in CSS?
As HSL: color: hsl(126, 77%, 7%); — As HEX: color: #042007; — As RGB: color: rgb(4, 32, 7); — Tailwind CSS: bg-[hsl(126,77%,7%)] — CSS variable: --color-primary: hsl(126, 77%, 7%);