HSL(158, 20%, 34%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(158,20%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(158, 20%, 34%) | color: hsl(158, 20%, 34%) | |
| HEX | #45685B | color: #45685B | |
| RGB | rgb(69, 104, 91) | color: rgb(69, 104, 91) | |
| CMYK | cmyk(34%, 0%, 13%, 59%) | — | |
| HSV | hsv(158, 34%, 41%) | — | |
| HWB | hwb(158 27% 59%) | color: hwb(158 27% 59%) | |
| OKLCH | oklch(0.4864 0.0456 169.19) | color: oklch(0.4864 0.0456 169.19) | |
| Lab | lab(41.09 -15.74 3.33) | color: lab(41.09 -15.74 3.33) | |
| LCH | lch(41.09 16.09 168.05) | color: lch(41.09 16.09 168.05) |
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)
#54545E — rgb(84, 84, 94)
Deuteranopia (Green-blind)
#52505F — rgb(82, 80, 95)
Tritanopia (Blue-blind)
#476161 — rgb(71, 97, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(158, 20%, 34%);
text
color: hsl(158, 20%, 34%);
border
border: 2px solid hsl(158, 20%, 34%);
gradient light
background: linear-gradient(to right, hsl(158, 20%, 54%), hsl(158, 20%, 34%));
gradient dark
background: linear-gradient(to right, hsl(158, 20%, 34%), hsl(158, 20%, 14%))
hex
background-color: #45685B;
tailwind
bg-[hsl(158,20%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(158, 20%, 34%, 0.4);
css variable
--color-primary: hsl(158, 20%, 34%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(158, 20%, 34%)?
HEX: #45685B | RGB: rgb(69, 104, 91) | CMYK: 34%, 0%, 13%, 59% | HSV: 158°, 34%, 41%. Copy any format from the conversion table above.
What colors go well with #45685B?
The complementary color is HSL(338, 20%, 34%). 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, 20%, 34%) in CSS?
As HSL: color: hsl(158, 20%, 34%); — As HEX: color: #45685B; — As RGB: color: rgb(69, 104, 91); — Tailwind CSS: bg-[hsl(158,20%,34%)] — CSS variable: --color-primary: hsl(158, 20%, 34%);