HSL(127, 81%, 25%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(127,81%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 81%, 25%) | color: hsl(127, 81%, 25%) | |
| HEX | #0C7318 | color: #0C7318 | |
| RGB | rgb(12, 115, 24) | color: rgb(12, 115, 24) | |
| CMYK | cmyk(90%, 0%, 79%, 55%) | — | |
| HSV | hsv(127, 90%, 45%) | — | |
| HWB | hwb(127 5% 55%) | color: hwb(127 5% 55%) | |
| OKLCH | oklch(0.4839 0.1522 143.83) | color: oklch(0.4839 0.1522 143.83) | |
| Lab | lab(41.85 -45.45 39.89) | color: lab(41.85 -45.45 39.89) | |
| LCH | lch(41.85 60.47 138.73) | color: lch(41.85 60.47 138.73) |
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)
#393A2E — rgb(57, 58, 46)
Deuteranopia (Green-blind)
#332B33 — rgb(51, 43, 51)
Tritanopia (Blue-blind)
#113F43 — rgb(17, 63, 67)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 81%, 25%);
text
color: hsl(127, 81%, 25%);
border
border: 2px solid hsl(127, 81%, 25%);
gradient light
background: linear-gradient(to right, hsl(127, 81%, 45%), hsl(127, 81%, 25%));
gradient dark
background: linear-gradient(to right, hsl(127, 81%, 25%), hsl(127, 81%, 5%))
hex
background-color: #0C7318;
tailwind
bg-[hsl(127,81%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 81%, 25%, 0.4);
css variable
--color-primary: hsl(127, 81%, 25%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(127, 81%, 25%)?
HEX: #0C7318 | RGB: rgb(12, 115, 24) | CMYK: 90%, 0%, 79%, 55% | HSV: 127°, 90%, 45%. Copy any format from the conversion table above.
What colors go well with #0C7318?
The complementary color is HSL(307, 81%, 25%). For a triadic harmony, use hues 127°, 247°, and 7°. For analogous combinations, try hues 97° and 157°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(127, 81%, 25%) in CSS?
As HSL: color: hsl(127, 81%, 25%); — As HEX: color: #0C7318; — As RGB: color: rgb(12, 115, 24); — Tailwind CSS: bg-[hsl(127,81%,25%)] — CSS variable: --color-primary: hsl(127, 81%, 25%);