HSL(336, 18%, 42%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(336,18%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(336, 18%, 42%) | color: hsl(336, 18%, 42%) | |
| HEX | #7E5867 | color: #7E5867 | |
| RGB | rgb(126, 88, 103) | color: rgb(126, 88, 103) | |
| CMYK | cmyk(0%, 30%, 18%, 51%) | — | |
| HSV | hsv(336, 30%, 49%) | — | |
| HWB | hwb(336 34% 51%) | color: hwb(336 34% 51%) | |
| OKLCH | oklch(0.5056 0.0543 353.8) | color: oklch(0.5056 0.0543 353.8) | |
| Lab | lab(41.84 18.13 -2.31) | color: lab(41.84 18.13 -2.31) | |
| LCH | lch(41.84 18.28 352.74) | color: lch(41.84 18.28 352.74) |
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)
#6E6D63 — rgb(110, 109, 99)
Deuteranopia (Green-blind)
#707363 — rgb(112, 115, 99)
Tritanopia (Blue-blind)
#7C6160 — rgb(124, 97, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(336, 18%, 42%);
text
color: hsl(336, 18%, 42%);
border
border: 2px solid hsl(336, 18%, 42%);
gradient light
background: linear-gradient(to right, hsl(336, 18%, 62%), hsl(336, 18%, 42%));
gradient dark
background: linear-gradient(to right, hsl(336, 18%, 42%), hsl(336, 18%, 22%))
hex
background-color: #7E5867;
tailwind
bg-[hsl(336,18%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(336, 18%, 42%, 0.4);
css variable
--color-primary: hsl(336, 18%, 42%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(336, 18%, 42%)?
HEX: #7E5867 | RGB: rgb(126, 88, 103) | CMYK: 0%, 30%, 18%, 51% | HSV: 336°, 30%, 49%. Copy any format from the conversion table above.
What colors go well with #7E5867?
The complementary color is HSL(156, 18%, 42%). For a triadic harmony, use hues 336°, 96°, and 216°. For analogous combinations, try hues 306° and 6°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(336, 18%, 42%) in CSS?
As HSL: color: hsl(336, 18%, 42%); — As HEX: color: #7E5867; — As RGB: color: rgb(126, 88, 103); — Tailwind CSS: bg-[hsl(336,18%,42%)] — CSS variable: --color-primary: hsl(336, 18%, 42%);