HSL(340, 20%, 66%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(340,20%,66%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(340, 20%, 66%) | color: hsl(340, 20%, 66%) | |
| HEX | #BA97A3 | color: #BA97A3 | |
| RGB | rgb(186, 151, 163) | color: rgb(186, 151, 163) | |
| CMYK | cmyk(0%, 19%, 12%, 27%) | — | |
| HSV | hsv(339, 19%, 73%) | — | |
| HWB | hwb(339 59% 27%) | color: hwb(339 59% 27%) | |
| OKLCH | oklch(0.7119 0.0447 355.75) | color: oklch(0.7119 0.0447 355.75) | |
| Lab | lab(65.92 15.01 -1.33) | color: lab(65.92 15.01 -1.33) | |
| LCH | lch(65.92 15.07 354.94) | color: lch(65.92 15.07 354.94) |
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)
#ABABA0 — rgb(171, 171, 160)
Deuteranopia (Green-blind)
#ADB09F — rgb(173, 176, 159)
Tritanopia (Blue-blind)
#B89E9D — rgb(184, 158, 157)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(340, 20%, 66%);
text
color: hsl(340, 20%, 66%);
border
border: 2px solid hsl(340, 20%, 66%);
gradient light
background: linear-gradient(to right, hsl(340, 20%, 86%), hsl(340, 20%, 66%));
gradient dark
background: linear-gradient(to right, hsl(340, 20%, 66%), hsl(340, 20%, 46%))
hex
background-color: #BA97A3;
tailwind
bg-[hsl(340,20%,66%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(340, 20%, 66%, 0.4);
css variable
--color-primary: hsl(340, 20%, 66%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(340, 20%, 66%)?
HEX: #BA97A3 | RGB: rgb(186, 151, 163) | CMYK: 0%, 19%, 12%, 27% | HSV: 339°, 19%, 73%. Copy any format from the conversion table above.
What colors go well with #BA97A3?
The complementary color is HSL(160, 20%, 66%). For a triadic harmony, use hues 340°, 100°, and 220°. For analogous combinations, try hues 310° and 10°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(340, 20%, 66%) in CSS?
As HSL: color: hsl(340, 20%, 66%); — As HEX: color: #BA97A3; — As RGB: color: rgb(186, 151, 163); — Tailwind CSS: bg-[hsl(340,20%,66%)] — CSS variable: --color-primary: hsl(340, 20%, 66%);