HSL(306, 72%, 50%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(306,72%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(306, 72%, 50%) | color: hsl(306, 72%, 50%) | |
| HEX | #DB24C9 | color: #DB24C9 | |
| RGB | rgb(219, 36, 201) | color: rgb(219, 36, 201) | |
| CMYK | cmyk(0%, 84%, 8%, 14%) | — | |
| HSV | hsv(306, 84%, 86%) | — | |
| HWB | hwb(306 14% 14%) | color: hwb(306 14% 14%) | |
| OKLCH | oklch(0.6252 0.2623 333.01) | color: oklch(0.6252 0.2623 333.01) | |
| Lab | lab(52.45 80.88 -43.26) | color: lab(52.45 80.88 -43.26) | |
| LCH | lch(52.45 91.72 331.86) | color: lch(52.45 91.72 331.86) |
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)
#8C8AA1 — rgb(140, 138, 161)
Deuteranopia (Green-blind)
#96A498 — rgb(150, 164, 152)
Tritanopia (Blue-blind)
#D2827B — rgb(210, 130, 123)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(306, 72%, 50%);
text
color: hsl(306, 72%, 50%);
border
border: 2px solid hsl(306, 72%, 50%);
gradient light
background: linear-gradient(to right, hsl(306, 72%, 70%), hsl(306, 72%, 50%));
gradient dark
background: linear-gradient(to right, hsl(306, 72%, 50%), hsl(306, 72%, 30%))
hex
background-color: #DB24C9;
tailwind
bg-[hsl(306,72%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(306, 72%, 50%, 0.4);
css variable
--color-primary: hsl(306, 72%, 50%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(306, 72%, 50%)?
HEX: #DB24C9 | RGB: rgb(219, 36, 201) | CMYK: 0%, 84%, 8%, 14% | HSV: 306°, 84%, 86%. Copy any format from the conversion table above.
What colors go well with #DB24C9?
The complementary color is HSL(126, 72%, 50%). For a triadic harmony, use hues 306°, 66°, and 186°. For analogous combinations, try hues 276° and 336°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(306, 72%, 50%) in CSS?
As HSL: color: hsl(306, 72%, 50%); — As HEX: color: #DB24C9; — As RGB: color: rgb(219, 36, 201); — Tailwind CSS: bg-[hsl(306,72%,50%)] — CSS variable: --color-primary: hsl(306, 72%, 50%);