HSL(186, 40%, 42%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(186,40%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(186, 40%, 42%) | color: hsl(186, 40%, 42%) | |
| HEX | #408D96 | color: #408D96 | |
| RGB | rgb(64, 141, 150) | color: rgb(64, 141, 150) | |
| CMYK | cmyk(57%, 6%, 0%, 41%) | — | |
| HSV | hsv(186, 57%, 59%) | — | |
| HWB | hwb(186 25% 41%) | color: hwb(186 25% 41%) | |
| OKLCH | oklch(0.5988 0.0765 205.64) | color: oklch(0.5988 0.0765 205.64) | |
| Lab | lab(54.39 -20.89 -11.97) | color: lab(54.39 -20.89 -11.97) | |
| LCH | lch(54.39 24.08 209.81) | color: lch(54.39 24.08 209.81) |
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)
#616294 — rgb(97, 98, 148)
Deuteranopia (Green-blind)
#5D5793 — rgb(93, 87, 147)
Tritanopia (Blue-blind)
#449292 — rgb(68, 146, 146)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(186, 40%, 42%);
text
color: hsl(186, 40%, 42%);
border
border: 2px solid hsl(186, 40%, 42%);
gradient light
background: linear-gradient(to right, hsl(186, 40%, 62%), hsl(186, 40%, 42%));
gradient dark
background: linear-gradient(to right, hsl(186, 40%, 42%), hsl(186, 40%, 22%))
hex
background-color: #408D96;
tailwind
bg-[hsl(186,40%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(186, 40%, 42%, 0.4);
css variable
--color-primary: hsl(186, 40%, 42%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(186, 40%, 42%)?
HEX: #408D96 | RGB: rgb(64, 141, 150) | CMYK: 57%, 6%, 0%, 41% | HSV: 186°, 57%, 59%. Copy any format from the conversion table above.
What colors go well with #408D96?
The complementary color is HSL(6, 40%, 42%). For a triadic harmony, use hues 186°, 306°, and 66°. For analogous combinations, try hues 156° and 216°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(186, 40%, 42%) in CSS?
As HSL: color: hsl(186, 40%, 42%); — As HEX: color: #408D96; — As RGB: color: rgb(64, 141, 150); — Tailwind CSS: bg-[hsl(186,40%,42%)] — CSS variable: --color-primary: hsl(186, 40%, 42%);