HSL(138, 30%, 27%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(138,30%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(138, 30%, 27%) | color: hsl(138, 30%, 27%) | |
| HEX | #305A3D | color: #305A3D | |
| RGB | rgb(48, 90, 61) | color: rgb(48, 90, 61) | |
| CMYK | cmyk(47%, 0%, 32%, 65%) | — | |
| HSV | hsv(139, 47%, 35%) | — | |
| HWB | hwb(139 19% 65%) | color: hwb(139 19% 65%) | |
| OKLCH | oklch(0.4281 0.0677 152.61) | color: oklch(0.4281 0.0677 152.61) | |
| Lab | lab(34.55 -22 12.3) | color: lab(34.55 -22 12.3) | |
| LCH | lch(34.55 25.2 150.79) | color: lch(34.55 25.2 150.79) |
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)
#424344 — rgb(66, 67, 68)
Deuteranopia (Green-blind)
#403D46 — rgb(64, 61, 70)
Tritanopia (Blue-blind)
#324A4B — rgb(50, 74, 75)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(138, 30%, 27%);
text
color: hsl(138, 30%, 27%);
border
border: 2px solid hsl(138, 30%, 27%);
gradient light
background: linear-gradient(to right, hsl(138, 30%, 47%), hsl(138, 30%, 27%));
gradient dark
background: linear-gradient(to right, hsl(138, 30%, 27%), hsl(138, 30%, 7%))
hex
background-color: #305A3D;
tailwind
bg-[hsl(138,30%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(138, 30%, 27%, 0.4);
css variable
--color-primary: hsl(138, 30%, 27%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(138, 30%, 27%)?
HEX: #305A3D | RGB: rgb(48, 90, 61) | CMYK: 47%, 0%, 32%, 65% | HSV: 139°, 47%, 35%. Copy any format from the conversion table above.
What colors go well with #305A3D?
The complementary color is HSL(318, 30%, 27%). 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, 30%, 27%) in CSS?
As HSL: color: hsl(138, 30%, 27%); — As HEX: color: #305A3D; — As RGB: color: rgb(48, 90, 61); — Tailwind CSS: bg-[hsl(138,30%,27%)] — CSS variable: --color-primary: hsl(138, 30%, 27%);