HSL(338, 68%, 51%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(338,68%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(338, 68%, 51%) | color: hsl(338, 68%, 51%) | |
| HEX | #D72D6B | color: #D72D6B | |
| RGB | rgb(215, 45, 107) | color: rgb(215, 45, 107) | |
| CMYK | cmyk(0%, 79%, 50%, 16%) | — | |
| HSV | hsv(338, 79%, 84%) | — | |
| HWB | hwb(338 18% 16%) | color: hwb(338 18% 16%) | |
| OKLCH | oklch(0.5851 0.2069 5.09) | color: oklch(0.5851 0.2069 5.09) | |
| Lab | lab(48.75 67.37 6.98) | color: lab(48.75 67.37 6.98) | |
| LCH | lch(48.75 67.73 5.92) | color: lch(48.75 67.73 5.92) |
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)
#8D8C5C — rgb(141, 140, 92)
Deuteranopia (Green-blind)
#97A458 — rgb(151, 164, 88)
Tritanopia (Blue-blind)
#CF504E — rgb(207, 80, 78)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(338, 68%, 51%);
text
color: hsl(338, 68%, 51%);
border
border: 2px solid hsl(338, 68%, 51%);
gradient light
background: linear-gradient(to right, hsl(338, 68%, 71%), hsl(338, 68%, 51%));
gradient dark
background: linear-gradient(to right, hsl(338, 68%, 51%), hsl(338, 68%, 31%))
hex
background-color: #D72D6B;
tailwind
bg-[hsl(338,68%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(338, 68%, 51%, 0.4);
css variable
--color-primary: hsl(338, 68%, 51%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(338, 68%, 51%)?
HEX: #D72D6B | RGB: rgb(215, 45, 107) | CMYK: 0%, 79%, 50%, 16% | HSV: 338°, 79%, 84%. Copy any format from the conversion table above.
What colors go well with #D72D6B?
The complementary color is HSL(158, 68%, 51%). 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, 68%, 51%) in CSS?
As HSL: color: hsl(338, 68%, 51%); — As HEX: color: #D72D6B; — As RGB: color: rgb(215, 45, 107); — Tailwind CSS: bg-[hsl(338,68%,51%)] — CSS variable: --color-primary: hsl(338, 68%, 51%);