HSL(305, 73%, 48%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(305,73%,48%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(305, 73%, 48%) | color: hsl(305, 73%, 48%) | |
| HEX | #D421C5 | color: #D421C5 | |
| RGB | rgb(212, 33, 197) | color: rgb(212, 33, 197) | |
| CMYK | cmyk(0%, 84%, 7%, 17%) | — | |
| HSV | hsv(305, 84%, 83%) | — | |
| HWB | hwb(305 13% 17%) | color: hwb(305 13% 17%) | |
| OKLCH | oklch(0.6107 0.2585 332.31) | color: oklch(0.6107 0.2585 332.31) | |
| Lab | lab(50.83 79.56 -43.59) | color: lab(50.83 79.56 -43.59) | |
| LCH | lch(50.83 90.72 331.28) | color: lch(50.83 90.72 331.28) |
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)
#86859D — rgb(134, 133, 157)
Deuteranopia (Green-blind)
#919E94 — rgb(145, 158, 148)
Tritanopia (Blue-blind)
#CB7E77 — rgb(203, 126, 119)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(305, 73%, 48%);
text
color: hsl(305, 73%, 48%);
border
border: 2px solid hsl(305, 73%, 48%);
gradient light
background: linear-gradient(to right, hsl(305, 73%, 68%), hsl(305, 73%, 48%));
gradient dark
background: linear-gradient(to right, hsl(305, 73%, 48%), hsl(305, 73%, 28%))
hex
background-color: #D421C5;
tailwind
bg-[hsl(305,73%,48%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(305, 73%, 48%, 0.4);
css variable
--color-primary: hsl(305, 73%, 48%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(305, 73%, 48%)?
HEX: #D421C5 | RGB: rgb(212, 33, 197) | CMYK: 0%, 84%, 7%, 17% | HSV: 305°, 84%, 83%. Copy any format from the conversion table above.
What colors go well with #D421C5?
The complementary color is HSL(125, 73%, 48%). 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, 73%, 48%) in CSS?
As HSL: color: hsl(305, 73%, 48%); — As HEX: color: #D421C5; — As RGB: color: rgb(212, 33, 197); — Tailwind CSS: bg-[hsl(305,73%,48%)] — CSS variable: --color-primary: hsl(305, 73%, 48%);