HSL(126, 54%, 23%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,54%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 54%, 23%) | color: hsl(126, 54%, 23%) | |
| HEX | #1B5A21 | color: #1B5A21 | |
| RGB | rgb(27, 90, 33) | color: rgb(27, 90, 33) | |
| CMYK | cmyk(70%, 0%, 63%, 65%) | — | |
| HSV | hsv(126, 70%, 35%) | — | |
| HWB | hwb(126 11% 65%) | color: hwb(126 11% 65%) | |
| OKLCH | oklch(0.4136 0.1093 144.78) | color: oklch(0.4136 0.1093 144.78) | |
| Lab | lab(33.25 -33.01 26.7) | color: lab(33.25 -33.01 26.7) | |
| LCH | lch(33.25 42.46 141.03) | color: lch(33.25 42.46 141.03) |
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)
#36372F — rgb(54, 55, 47)
Deuteranopia (Green-blind)
#332E32 — rgb(51, 46, 50)
Tritanopia (Blue-blind)
#1E3A3C — rgb(30, 58, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 54%, 23%);
text
color: hsl(126, 54%, 23%);
border
border: 2px solid hsl(126, 54%, 23%);
gradient light
background: linear-gradient(to right, hsl(126, 54%, 43%), hsl(126, 54%, 23%));
gradient dark
background: linear-gradient(to right, hsl(126, 54%, 23%), hsl(126, 54%, 3%))
hex
background-color: #1B5A21;
tailwind
bg-[hsl(126,54%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 54%, 23%, 0.4);
css variable
--color-primary: hsl(126, 54%, 23%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 54%, 23%)?
HEX: #1B5A21 | RGB: rgb(27, 90, 33) | CMYK: 70%, 0%, 63%, 65% | HSV: 126°, 70%, 35%. Copy any format from the conversion table above.
What colors go well with #1B5A21?
The complementary color is HSL(306, 54%, 23%). 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, 54%, 23%) in CSS?
As HSL: color: hsl(126, 54%, 23%); — As HEX: color: #1B5A21; — As RGB: color: rgb(27, 90, 33); — Tailwind CSS: bg-[hsl(126,54%,23%)] — CSS variable: --color-primary: hsl(126, 54%, 23%);