HSL(305, 80%, 62%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(305,80%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(305, 80%, 62%) | color: hsl(305, 80%, 62%) | |
| HEX | #EC51DF | color: #EC51DF | |
| RGB | rgb(236, 81, 223) | color: rgb(236, 81, 223) | |
| CMYK | cmyk(0%, 66%, 6%, 7%) | — | |
| HSV | hsv(305, 66%, 93%) | — | |
| HWB | hwb(305 32% 7%) | color: hwb(305 32% 7%) | |
| OKLCH | oklch(0.6941 0.2431 331.39) | color: oklch(0.6941 0.2431 331.39) | |
| Lab | lab(60.83 74.77 -42.37) | color: lab(60.83 74.77 -42.37) | |
| LCH | lch(60.83 85.94 330.46) | color: lch(60.83 85.94 330.46) |
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)
#A9A7BD — rgb(169, 167, 189)
Deuteranopia (Green-blind)
#B2BEB4 — rgb(178, 190, 180)
Tritanopia (Blue-blind)
#E4A29C — rgb(228, 162, 156)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(305, 80%, 62%);
text
color: hsl(305, 80%, 62%);
border
border: 2px solid hsl(305, 80%, 62%);
gradient light
background: linear-gradient(to right, hsl(305, 80%, 82%), hsl(305, 80%, 62%));
gradient dark
background: linear-gradient(to right, hsl(305, 80%, 62%), hsl(305, 80%, 42%))
hex
background-color: #EC51DF;
tailwind
bg-[hsl(305,80%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(305, 80%, 62%, 0.4);
css variable
--color-primary: hsl(305, 80%, 62%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(305, 80%, 62%)?
HEX: #EC51DF | RGB: rgb(236, 81, 223) | CMYK: 0%, 66%, 6%, 7% | HSV: 305°, 66%, 93%. Copy any format from the conversion table above.
What colors go well with #EC51DF?
The complementary color is HSL(125, 80%, 62%). For a triadic harmony, use hues 305°, 65°, and 185°. For analogous combinations, try hues 275° and 335°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(305, 80%, 62%) in CSS?
As HSL: color: hsl(305, 80%, 62%); — As HEX: color: #EC51DF; — As RGB: color: rgb(236, 81, 223); — Tailwind CSS: bg-[hsl(305,80%,62%)] — CSS variable: --color-primary: hsl(305, 80%, 62%);