HSL(171, 58%, 40%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(171,58%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(171, 58%, 40%) | color: hsl(171, 58%, 40%) | |
| HEX | #2BA18F | color: #2BA18F | |
| RGB | rgb(43, 161, 143) | color: rgb(43, 161, 143) | |
| CMYK | cmyk(73%, 0%, 11%, 37%) | — | |
| HSV | hsv(171, 73%, 63%) | — | |
| HWB | hwb(171 17% 37%) | color: hwb(171 17% 37%) | |
| OKLCH | oklch(0.6409 0.1049 180.18) | color: oklch(0.6409 0.1049 180.18) | |
| Lab | lab(59.87 -36.26 0.1) | color: lab(59.87 -36.26 0.1) | |
| LCH | lch(59.87 36.26 179.84) | color: lch(59.87 36.26 179.84) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#5E5F93 — rgb(94, 95, 147)
Deuteranopia (Green-blind)
#574E94 — rgb(87, 78, 148)
Tritanopia (Blue-blind)
#319798 — rgb(49, 151, 152)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(171, 58%, 40%);
text
color: hsl(171, 58%, 40%);
border
border: 2px solid hsl(171, 58%, 40%);
gradient light
background: linear-gradient(to right, hsl(171, 58%, 60%), hsl(171, 58%, 40%));
gradient dark
background: linear-gradient(to right, hsl(171, 58%, 40%), hsl(171, 58%, 20%))
hex
background-color: #2BA18F;
tailwind
bg-[hsl(171,58%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(171, 58%, 40%, 0.4);
css variable
--color-primary: hsl(171, 58%, 40%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(171, 58%, 40%)?
HEX: #2BA18F | RGB: rgb(43, 161, 143) | CMYK: 73%, 0%, 11%, 37% | HSV: 171°, 73%, 63%. Copy any format from the conversion table above.
What colors go well with #2BA18F?
The complementary color is HSL(351, 58%, 40%). For a triadic harmony, use hues 171°, 291°, and 51°. For analogous combinations, try hues 141° and 201°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(171, 58%, 40%) in CSS?
As HSL: color: hsl(171, 58%, 40%); — As HEX: color: #2BA18F; — As RGB: color: rgb(43, 161, 143); — Tailwind CSS: bg-[hsl(171,58%,40%)] — CSS variable: --color-primary: hsl(171, 58%, 40%);