HSL(302, 80%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,80%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 80%, 42%) | color: hsl(302, 80%, 42%) | |
| HEX | #C115BB | color: #C115BB | |
| RGB | rgb(193, 21, 187) | color: rgb(193, 21, 187) | |
| CMYK | cmyk(0%, 89%, 3%, 24%) | — | |
| HSV | hsv(302, 89%, 76%) | — | |
| HWB | hwb(302 8% 24%) | color: hwb(302 8% 24%) | |
| OKLCH | oklch(0.5705 0.2506 330.01) | color: oklch(0.5705 0.2506 330.01) | |
| Lab | lab(46.26 76.65 -45.23) | color: lab(46.26 76.65 -45.23) | |
| LCH | lch(46.26 89 329.46) | color: lch(46.26 89 329.46) |
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)
#777593 — rgb(119, 117, 147)
Deuteranopia (Green-blind)
#818D89 — rgb(129, 141, 137)
Tritanopia (Blue-blind)
#B8736C — rgb(184, 115, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 80%, 42%);
text
color: hsl(302, 80%, 42%);
border
border: 2px solid hsl(302, 80%, 42%);
gradient light
background: linear-gradient(to right, hsl(302, 80%, 62%), hsl(302, 80%, 42%));
gradient dark
background: linear-gradient(to right, hsl(302, 80%, 42%), hsl(302, 80%, 22%))
hex
background-color: #C115BB;
tailwind
bg-[hsl(302,80%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 80%, 42%, 0.4);
css variable
--color-primary: hsl(302, 80%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 80%, 42%)?
HEX: #C115BB | RGB: rgb(193, 21, 187) | CMYK: 0%, 89%, 3%, 24% | HSV: 302°, 89%, 76%. Copy any format from the conversion table above.
What colors go well with #C115BB?
The complementary color is HSL(122, 80%, 42%). 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, 80%, 42%) in CSS?
As HSL: color: hsl(302, 80%, 42%); — As HEX: color: #C115BB; — As RGB: color: rgb(193, 21, 187); — Tailwind CSS: bg-[hsl(302,80%,42%)] — CSS variable: --color-primary: hsl(302, 80%, 42%);