HSL(338, 28%, 58%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(338,28%,58%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(338, 28%, 58%) | color: hsl(338, 28%, 58%) | |
| HEX | #B2768C | color: #B2768C | |
| RGB | rgb(178, 118, 140) | color: rgb(178, 118, 140) | |
| CMYK | cmyk(0%, 34%, 21%, 30%) | — | |
| HSV | hsv(338, 34%, 70%) | — | |
| HWB | hwb(338 46% 30%) | color: hwb(338 46% 30%) | |
| OKLCH | oklch(0.6345 0.0803 356) | color: oklch(0.6345 0.0803 356) | |
| Lab | lab(56.4 26.72 -2.26) | color: lab(56.4 26.72 -2.26) | |
| LCH | lch(56.4 26.82 355.17) | color: lch(56.4 26.82 355.17) |
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)
#989787 — rgb(152, 151, 135)
Deuteranopia (Green-blind)
#9CA085 — rgb(156, 160, 133)
Tritanopia (Blue-blind)
#AF8282 — rgb(175, 130, 130)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(338, 28%, 58%);
text
color: hsl(338, 28%, 58%);
border
border: 2px solid hsl(338, 28%, 58%);
gradient light
background: linear-gradient(to right, hsl(338, 28%, 78%), hsl(338, 28%, 58%));
gradient dark
background: linear-gradient(to right, hsl(338, 28%, 58%), hsl(338, 28%, 38%))
hex
background-color: #B2768C;
tailwind
bg-[hsl(338,28%,58%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(338, 28%, 58%, 0.4);
css variable
--color-primary: hsl(338, 28%, 58%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(338, 28%, 58%)?
HEX: #B2768C | RGB: rgb(178, 118, 140) | CMYK: 0%, 34%, 21%, 30% | HSV: 338°, 34%, 70%. Copy any format from the conversion table above.
What colors go well with #B2768C?
The complementary color is HSL(158, 28%, 58%). For a triadic harmony, use hues 338°, 98°, and 218°. For analogous combinations, try hues 308° and 8°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(338, 28%, 58%) in CSS?
As HSL: color: hsl(338, 28%, 58%); — As HEX: color: #B2768C; — As RGB: color: rgb(178, 118, 140); — Tailwind CSS: bg-[hsl(338,28%,58%)] — CSS variable: --color-primary: hsl(338, 28%, 58%);