HSL(338, 24%, 52%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(338,24%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(338, 24%, 52%) | color: hsl(338, 24%, 52%) | |
| HEX | #A2677D | color: #A2677D | |
| RGB | rgb(162, 103, 125) | color: rgb(162, 103, 125) | |
| CMYK | cmyk(0%, 36%, 23%, 36%) | — | |
| HSV | hsv(338, 36%, 64%) | — | |
| HWB | hwb(338 41% 36%) | color: hwb(338 41% 36%) | |
| OKLCH | oklch(0.584 0.0808 355.94) | color: oklch(0.584 0.0808 355.94) | |
| Lab | lab(50.53 26.85 -2.31) | color: lab(50.53 26.85 -2.31) | |
| LCH | lch(50.53 26.95 355.08) | color: lch(50.53 26.95 355.08) |
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)
#888878 — rgb(136, 136, 120)
Deuteranopia (Green-blind)
#8C9076 — rgb(140, 144, 118)
Tritanopia (Blue-blind)
#9F7373 — rgb(159, 115, 115)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(338, 24%, 52%);
text
color: hsl(338, 24%, 52%);
border
border: 2px solid hsl(338, 24%, 52%);
gradient light
background: linear-gradient(to right, hsl(338, 24%, 72%), hsl(338, 24%, 52%));
gradient dark
background: linear-gradient(to right, hsl(338, 24%, 52%), hsl(338, 24%, 32%))
hex
background-color: #A2677D;
tailwind
bg-[hsl(338,24%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(338, 24%, 52%, 0.4);
css variable
--color-primary: hsl(338, 24%, 52%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(338, 24%, 52%)?
HEX: #A2677D | RGB: rgb(162, 103, 125) | CMYK: 0%, 36%, 23%, 36% | HSV: 338°, 36%, 64%. Copy any format from the conversion table above.
What colors go well with #A2677D?
The complementary color is HSL(158, 24%, 52%). 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, 24%, 52%) in CSS?
As HSL: color: hsl(338, 24%, 52%); — As HEX: color: #A2677D; — As RGB: color: rgb(162, 103, 125); — Tailwind CSS: bg-[hsl(338,24%,52%)] — CSS variable: --color-primary: hsl(338, 24%, 52%);