HSL(318, 30%, 27%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(318,30%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(318, 30%, 27%) | color: hsl(318, 30%, 27%) | |
| HEX | #5A304D | color: #5A304D | |
| RGB | rgb(90, 48, 77) | color: rgb(90, 48, 77) | |
| CMYK | cmyk(0%, 47%, 14%, 65%) | — | |
| HSV | hsv(319, 47%, 35%) | — | |
| HWB | hwb(319 19% 65%) | color: hwb(319 19% 65%) | |
| OKLCH | oklch(0.3735 0.0737 339.77) | color: oklch(0.3735 0.0737 339.77) | |
| Lab | lab(26.23 23.64 -9.55) | color: lab(26.23 23.64 -9.55) | |
| LCH | lch(26.23 25.5 338) | color: lch(26.23 25.5 338) |
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)
#484746 — rgb(72, 71, 70)
Deuteranopia (Green-blind)
#4A4D44 — rgb(74, 77, 68)
Tritanopia (Blue-blind)
#58403F — rgb(88, 64, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(318, 30%, 27%);
text
color: hsl(318, 30%, 27%);
border
border: 2px solid hsl(318, 30%, 27%);
gradient light
background: linear-gradient(to right, hsl(318, 30%, 47%), hsl(318, 30%, 27%));
gradient dark
background: linear-gradient(to right, hsl(318, 30%, 27%), hsl(318, 30%, 7%))
hex
background-color: #5A304D;
tailwind
bg-[hsl(318,30%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(318, 30%, 27%, 0.4);
css variable
--color-primary: hsl(318, 30%, 27%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(318, 30%, 27%)?
HEX: #5A304D | RGB: rgb(90, 48, 77) | CMYK: 0%, 47%, 14%, 65% | HSV: 319°, 47%, 35%. Copy any format from the conversion table above.
What colors go well with #5A304D?
The complementary color is HSL(138, 30%, 27%). For a triadic harmony, use hues 318°, 78°, and 198°. For analogous combinations, try hues 288° and 348°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(318, 30%, 27%) in CSS?
As HSL: color: hsl(318, 30%, 27%); — As HEX: color: #5A304D; — As RGB: color: rgb(90, 48, 77); — Tailwind CSS: bg-[hsl(318,30%,27%)] — CSS variable: --color-primary: hsl(318, 30%, 27%);