HSL(138, 40%, 23%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(138,40%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(138, 40%, 23%) | color: hsl(138, 40%, 23%) | |
| HEX | #235231 | color: #235231 | |
| RGB | rgb(35, 82, 49) | color: rgb(35, 82, 49) | |
| CMYK | cmyk(57%, 0%, 40%, 68%) | — | |
| HSV | hsv(138, 57%, 32%) | — | |
| HWB | hwb(138 14% 68%) | color: hwb(138 14% 68%) | |
| OKLCH | oklch(0.3959 0.076 151.22) | color: oklch(0.3959 0.076 151.22) | |
| Lab | lab(30.91 -24.53 14.63) | color: lab(30.91 -24.53 14.63) | |
| LCH | lch(30.91 28.56 149.19) | color: lch(30.91 28.56 149.19) |
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)
#373839 — rgb(55, 56, 57)
Deuteranopia (Green-blind)
#35313B — rgb(53, 49, 59)
Tritanopia (Blue-blind)
#253F41 — rgb(37, 63, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(138, 40%, 23%);
text
color: hsl(138, 40%, 23%);
border
border: 2px solid hsl(138, 40%, 23%);
gradient light
background: linear-gradient(to right, hsl(138, 40%, 43%), hsl(138, 40%, 23%));
gradient dark
background: linear-gradient(to right, hsl(138, 40%, 23%), hsl(138, 40%, 3%))
hex
background-color: #235231;
tailwind
bg-[hsl(138,40%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(138, 40%, 23%, 0.4);
css variable
--color-primary: hsl(138, 40%, 23%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(138, 40%, 23%)?
HEX: #235231 | RGB: rgb(35, 82, 49) | CMYK: 57%, 0%, 40%, 68% | HSV: 138°, 57%, 32%. Copy any format from the conversion table above.
What colors go well with #235231?
The complementary color is HSL(318, 40%, 23%). For a triadic harmony, use hues 138°, 258°, and 18°. For analogous combinations, try hues 108° and 168°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(138, 40%, 23%) in CSS?
As HSL: color: hsl(138, 40%, 23%); — As HEX: color: #235231; — As RGB: color: rgb(35, 82, 49); — Tailwind CSS: bg-[hsl(138,40%,23%)] — CSS variable: --color-primary: hsl(138, 40%, 23%);