HSL(102, 31%, 23%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(102,31%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(102, 31%, 23%) | color: hsl(102, 31%, 23%) | |
| HEX | #334D28 | color: #334D28 | |
| RGB | rgb(51, 77, 40) | color: rgb(51, 77, 40) | |
| CMYK | cmyk(34%, 0%, 48%, 70%) | — | |
| HSV | hsv(102, 48%, 30%) | — | |
| HWB | hwb(102 16% 70%) | color: hwb(102 16% 70%) | |
| OKLCH | oklch(0.3888 0.0674 136.94) | color: oklch(0.3888 0.0674 136.94) | |
| Lab | lab(29.82 -17.96 18.84) | color: lab(29.82 -17.96 18.84) | |
| LCH | lch(29.82 26.03 133.63) | color: lch(29.82 26.03 133.63) |
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)
#3E3E31 — rgb(62, 62, 49)
Deuteranopia (Green-blind)
#3D3B33 — rgb(61, 59, 51)
Tritanopia (Blue-blind)
#34383A — rgb(52, 56, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(102, 31%, 23%);
text
color: hsl(102, 31%, 23%);
border
border: 2px solid hsl(102, 31%, 23%);
gradient light
background: linear-gradient(to right, hsl(102, 31%, 43%), hsl(102, 31%, 23%));
gradient dark
background: linear-gradient(to right, hsl(102, 31%, 23%), hsl(102, 31%, 3%))
hex
background-color: #334D28;
tailwind
bg-[hsl(102,31%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(102, 31%, 23%, 0.4);
css variable
--color-primary: hsl(102, 31%, 23%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(102, 31%, 23%)?
HEX: #334D28 | RGB: rgb(51, 77, 40) | CMYK: 34%, 0%, 48%, 70% | HSV: 102°, 48%, 30%. Copy any format from the conversion table above.
What colors go well with #334D28?
The complementary color is HSL(282, 31%, 23%). For a triadic harmony, use hues 102°, 222°, and 342°. For analogous combinations, try hues 72° and 132°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(102, 31%, 23%) in CSS?
As HSL: color: hsl(102, 31%, 23%); — As HEX: color: #334D28; — As RGB: color: rgb(51, 77, 40); — Tailwind CSS: bg-[hsl(102,31%,23%)] — CSS variable: --color-primary: hsl(102, 31%, 23%);