HSL(302, 71%, 46%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,71%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 71%, 46%) | color: hsl(302, 71%, 46%) | |
| HEX | #C922C3 | color: #C922C3 | |
| RGB | rgb(201, 34, 195) | color: rgb(201, 34, 195) | |
| CMYK | cmyk(0%, 83%, 3%, 21%) | — | |
| HSV | hsv(302, 83%, 79%) | — | |
| HWB | hwb(302 13% 21%) | color: hwb(302 13% 21%) | |
| OKLCH | oklch(0.5931 0.2519 329.9) | color: oklch(0.5931 0.2519 329.9) | |
| Lab | lab(48.89 77 -45.63) | color: lab(48.89 77 -45.63) | |
| LCH | lch(48.89 89.5 329.35) | color: lch(48.89 89.5 329.35) |
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)
#817F9C — rgb(129, 127, 156)
Deuteranopia (Green-blind)
#8A9793 — rgb(138, 151, 147)
Tritanopia (Blue-blind)
#C17D77 — rgb(193, 125, 119)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 71%, 46%);
text
color: hsl(302, 71%, 46%);
border
border: 2px solid hsl(302, 71%, 46%);
gradient light
background: linear-gradient(to right, hsl(302, 71%, 66%), hsl(302, 71%, 46%));
gradient dark
background: linear-gradient(to right, hsl(302, 71%, 46%), hsl(302, 71%, 26%))
hex
background-color: #C922C3;
tailwind
bg-[hsl(302,71%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 71%, 46%, 0.4);
css variable
--color-primary: hsl(302, 71%, 46%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 71%, 46%)?
HEX: #C922C3 | RGB: rgb(201, 34, 195) | CMYK: 0%, 83%, 3%, 21% | HSV: 302°, 83%, 79%. Copy any format from the conversion table above.
What colors go well with #C922C3?
The complementary color is HSL(122, 71%, 46%). 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, 71%, 46%) in CSS?
As HSL: color: hsl(302, 71%, 46%); — As HEX: color: #C922C3; — As RGB: color: rgb(201, 34, 195); — Tailwind CSS: bg-[hsl(302,71%,46%)] — CSS variable: --color-primary: hsl(302, 71%, 46%);