HSL(158, 50%, 33%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(158,50%,33%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(158, 50%, 33%) | color: hsl(158, 50%, 33%) | |
| HEX | #2A7E5F | color: #2A7E5F | |
| RGB | rgb(42, 126, 95) | color: rgb(42, 126, 95) | |
| CMYK | cmyk(67%, 0%, 25%, 51%) | — | |
| HSV | hsv(158, 67%, 49%) | — | |
| HWB | hwb(158 16% 51%) | color: hwb(158 16% 51%) | |
| OKLCH | oklch(0.5339 0.0945 164.91) | color: oklch(0.5339 0.0945 164.91) | |
| Lab | lab(47.29 -33.03 9.62) | color: lab(47.29 -33.03 9.62) | |
| LCH | lch(47.29 34.4 163.76) | color: lch(47.29 34.4 163.76) |
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)
#4E4F67 — rgb(78, 79, 103)
Deuteranopia (Green-blind)
#4A4368 — rgb(74, 67, 104)
Tritanopia (Blue-blind)
#2E6C6E — rgb(46, 108, 110)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(158, 50%, 33%);
text
color: hsl(158, 50%, 33%);
border
border: 2px solid hsl(158, 50%, 33%);
gradient light
background: linear-gradient(to right, hsl(158, 50%, 53%), hsl(158, 50%, 33%));
gradient dark
background: linear-gradient(to right, hsl(158, 50%, 33%), hsl(158, 50%, 13%))
hex
background-color: #2A7E5F;
tailwind
bg-[hsl(158,50%,33%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(158, 50%, 33%, 0.4);
css variable
--color-primary: hsl(158, 50%, 33%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(158, 50%, 33%)?
HEX: #2A7E5F | RGB: rgb(42, 126, 95) | CMYK: 67%, 0%, 25%, 51% | HSV: 158°, 67%, 49%. Copy any format from the conversion table above.
What colors go well with #2A7E5F?
The complementary color is HSL(338, 50%, 33%). For a triadic harmony, use hues 158°, 278°, and 38°. For analogous combinations, try hues 128° and 188°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(158, 50%, 33%) in CSS?
As HSL: color: hsl(158, 50%, 33%); — As HEX: color: #2A7E5F; — As RGB: color: rgb(42, 126, 95); — Tailwind CSS: bg-[hsl(158,50%,33%)] — CSS variable: --color-primary: hsl(158, 50%, 33%);