HSL(302, 88%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,88%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 88%, 40%) | color: hsl(302, 88%, 40%) | |
| HEX | #C00CBA | color: #C00CBA | |
| RGB | rgb(192, 12, 186) | color: rgb(192, 12, 186) | |
| CMYK | cmyk(0%, 94%, 3%, 25%) | — | |
| HSV | hsv(302, 94%, 75%) | — | |
| HWB | hwb(302 5% 25%) | color: hwb(302 5% 25%) | |
| OKLCH | oklch(0.5657 0.2531 330.04) | color: oklch(0.5657 0.2531 330.04) | |
| Lab | lab(45.66 77.41 -45.62) | color: lab(45.66 77.41 -45.62) | |
| LCH | lch(45.66 89.85 329.49) | color: lch(45.66 89.85 329.49) |
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)
#727090 — rgb(114, 112, 144)
Deuteranopia (Green-blind)
#7D8A86 — rgb(125, 138, 134)
Tritanopia (Blue-blind)
#B76F67 — rgb(183, 111, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 88%, 40%);
text
color: hsl(302, 88%, 40%);
border
border: 2px solid hsl(302, 88%, 40%);
gradient light
background: linear-gradient(to right, hsl(302, 88%, 60%), hsl(302, 88%, 40%));
gradient dark
background: linear-gradient(to right, hsl(302, 88%, 40%), hsl(302, 88%, 20%))
hex
background-color: #C00CBA;
tailwind
bg-[hsl(302,88%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 88%, 40%, 0.4);
css variable
--color-primary: hsl(302, 88%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 88%, 40%)?
HEX: #C00CBA | RGB: rgb(192, 12, 186) | CMYK: 0%, 94%, 3%, 25% | HSV: 302°, 94%, 75%. Copy any format from the conversion table above.
What colors go well with #C00CBA?
The complementary color is HSL(122, 88%, 40%). 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, 88%, 40%) in CSS?
As HSL: color: hsl(302, 88%, 40%); — As HEX: color: #C00CBA; — As RGB: color: rgb(192, 12, 186); — Tailwind CSS: bg-[hsl(302,88%,40%)] — CSS variable: --color-primary: hsl(302, 88%, 40%);