HSL(304, 79%, 52%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(304,79%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(304, 79%, 52%) | color: hsl(304, 79%, 52%) | |
| HEX | #E524D8 | color: #E524D8 | |
| RGB | rgb(229, 36, 216) | color: rgb(229, 36, 216) | |
| CMYK | cmyk(0%, 84%, 6%, 10%) | — | |
| HSV | hsv(304, 84%, 90%) | — | |
| HWB | hwb(304 14% 10%) | color: hwb(304 14% 10%) | |
| OKLCH | oklch(0.6487 0.2763 331.5) | color: oklch(0.6487 0.2763 331.5) | |
| Lab | lab(54.95 84.85 -47.77) | color: lab(54.95 84.85 -47.77) | |
| LCH | lch(54.95 97.37 330.62) | color: lch(54.95 97.37 330.62) |
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)
#9190AC — rgb(145, 144, 172)
Deuteranopia (Green-blind)
#9DABA2 — rgb(157, 171, 162)
Tritanopia (Blue-blind)
#DB8A83 — rgb(219, 138, 131)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(304, 79%, 52%);
text
color: hsl(304, 79%, 52%);
border
border: 2px solid hsl(304, 79%, 52%);
gradient light
background: linear-gradient(to right, hsl(304, 79%, 72%), hsl(304, 79%, 52%));
gradient dark
background: linear-gradient(to right, hsl(304, 79%, 52%), hsl(304, 79%, 32%))
hex
background-color: #E524D8;
tailwind
bg-[hsl(304,79%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(304, 79%, 52%, 0.4);
css variable
--color-primary: hsl(304, 79%, 52%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(304, 79%, 52%)?
HEX: #E524D8 | RGB: rgb(229, 36, 216) | CMYK: 0%, 84%, 6%, 10% | HSV: 304°, 84%, 90%. Copy any format from the conversion table above.
What colors go well with #E524D8?
The complementary color is HSL(124, 79%, 52%). For a triadic harmony, use hues 304°, 64°, and 184°. For analogous combinations, try hues 274° and 334°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(304, 79%, 52%) in CSS?
As HSL: color: hsl(304, 79%, 52%); — As HEX: color: #E524D8; — As RGB: color: rgb(229, 36, 216); — Tailwind CSS: bg-[hsl(304,79%,52%)] — CSS variable: --color-primary: hsl(304, 79%, 52%);