HSL(303, 72%, 45%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(303,72%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(303, 72%, 45%) | color: hsl(303, 72%, 45%) | |
| HEX | #C520BD | color: #C520BD | |
| RGB | rgb(197, 32, 189) | color: rgb(197, 32, 189) | |
| CMYK | cmyk(0%, 84%, 4%, 23%) | — | |
| HSV | hsv(303, 84%, 77%) | — | |
| HWB | hwb(303 12% 23%) | color: hwb(303 12% 23%) | |
| OKLCH | oklch(0.5825 0.2474 330.52) | color: oklch(0.5825 0.2474 330.52) | |
| Lab | lab(47.73 75.77 -44.03) | color: lab(47.73 75.77 -44.03) | |
| LCH | lch(47.73 87.63 329.84) | color: lch(47.73 87.63 329.84) |
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)
#7E7C97 — rgb(126, 124, 151)
Deuteranopia (Green-blind)
#87948E — rgb(135, 148, 142)
Tritanopia (Blue-blind)
#BD7972 — rgb(189, 121, 114)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(303, 72%, 45%);
text
color: hsl(303, 72%, 45%);
border
border: 2px solid hsl(303, 72%, 45%);
gradient light
background: linear-gradient(to right, hsl(303, 72%, 65%), hsl(303, 72%, 45%));
gradient dark
background: linear-gradient(to right, hsl(303, 72%, 45%), hsl(303, 72%, 25%))
hex
background-color: #C520BD;
tailwind
bg-[hsl(303,72%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(303, 72%, 45%, 0.4);
css variable
--color-primary: hsl(303, 72%, 45%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(303, 72%, 45%)?
HEX: #C520BD | RGB: rgb(197, 32, 189) | CMYK: 0%, 84%, 4%, 23% | HSV: 303°, 84%, 77%. Copy any format from the conversion table above.
What colors go well with #C520BD?
The complementary color is HSL(123, 72%, 45%). For a triadic harmony, use hues 303°, 63°, and 183°. For analogous combinations, try hues 273° and 333°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(303, 72%, 45%) in CSS?
As HSL: color: hsl(303, 72%, 45%); — As HEX: color: #C520BD; — As RGB: color: rgb(197, 32, 189); — Tailwind CSS: bg-[hsl(303,72%,45%)] — CSS variable: --color-primary: hsl(303, 72%, 45%);