HSL(302, 70%, 49%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,70%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 70%, 49%) | color: hsl(302, 70%, 49%) | |
| HEX | #D425CF | color: #D425CF | |
| RGB | rgb(212, 37, 207) | color: rgb(212, 37, 207) | |
| CMYK | cmyk(0%, 83%, 2%, 17%) | — | |
| HSV | hsv(302, 83%, 83%) | — | |
| HWB | hwb(302 14% 17%) | color: hwb(302 14% 17%) | |
| OKLCH | oklch(0.6183 0.2626 329.54) | color: oklch(0.6183 0.2626 329.54) | |
| Lab | lab(51.64 80.22 -48.06) | color: lab(51.64 80.22 -48.06) | |
| LCH | lch(51.64 93.51 329.07) | color: lch(51.64 93.51 329.07) |
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)
#8887A6 — rgb(136, 135, 166)
Deuteranopia (Green-blind)
#92A09C — rgb(146, 160, 156)
Tritanopia (Blue-blind)
#CB857E — rgb(203, 133, 126)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 70%, 49%);
text
color: hsl(302, 70%, 49%);
border
border: 2px solid hsl(302, 70%, 49%);
gradient light
background: linear-gradient(to right, hsl(302, 70%, 69%), hsl(302, 70%, 49%));
gradient dark
background: linear-gradient(to right, hsl(302, 70%, 49%), hsl(302, 70%, 29%))
hex
background-color: #D425CF;
tailwind
bg-[hsl(302,70%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 70%, 49%, 0.4);
css variable
--color-primary: hsl(302, 70%, 49%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 70%, 49%)?
HEX: #D425CF | RGB: rgb(212, 37, 207) | CMYK: 0%, 83%, 2%, 17% | HSV: 302°, 83%, 83%. Copy any format from the conversion table above.
What colors go well with #D425CF?
The complementary color is HSL(122, 70%, 49%). For a triadic harmony, use hues 302°, 62°, and 182°. For analogous combinations, try hues 272° and 332°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(302, 70%, 49%) in CSS?
As HSL: color: hsl(302, 70%, 49%); — As HEX: color: #D425CF; — As RGB: color: rgb(212, 37, 207); — Tailwind CSS: bg-[hsl(302,70%,49%)] — CSS variable: --color-primary: hsl(302, 70%, 49%);