HSL(302, 80%, 39%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,80%,39%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 80%, 39%) | color: hsl(302, 80%, 39%) | |
| HEX | #B314AE | color: #B314AE | |
| RGB | rgb(179, 20, 174) | color: rgb(179, 20, 174) | |
| CMYK | cmyk(0%, 89%, 3%, 30%) | — | |
| HSV | hsv(302, 89%, 70%) | — | |
| HWB | hwb(302 8% 30%) | color: hwb(302 8% 30%) | |
| OKLCH | oklch(0.5403 0.2367 329.82) | color: oklch(0.5403 0.2367 329.82) | |
| Lab | lab(42.98 72.35 -42.95) | color: lab(42.98 72.35 -42.95) | |
| LCH | lch(42.98 84.14 329.3) | color: lch(42.98 84.14 329.3) |
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)
#6E6D89 — rgb(110, 109, 137)
Deuteranopia (Green-blind)
#778380 — rgb(119, 131, 128)
Tritanopia (Blue-blind)
#AB6B65 — rgb(171, 107, 101)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 80%, 39%);
text
color: hsl(302, 80%, 39%);
border
border: 2px solid hsl(302, 80%, 39%);
gradient light
background: linear-gradient(to right, hsl(302, 80%, 59%), hsl(302, 80%, 39%));
gradient dark
background: linear-gradient(to right, hsl(302, 80%, 39%), hsl(302, 80%, 19%))
hex
background-color: #B314AE;
tailwind
bg-[hsl(302,80%,39%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 80%, 39%, 0.4);
css variable
--color-primary: hsl(302, 80%, 39%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 80%, 39%)?
HEX: #B314AE | RGB: rgb(179, 20, 174) | CMYK: 0%, 89%, 3%, 30% | HSV: 302°, 89%, 70%. Copy any format from the conversion table above.
What colors go well with #B314AE?
The complementary color is HSL(122, 80%, 39%). 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%, 39%) in CSS?
As HSL: color: hsl(302, 80%, 39%); — As HEX: color: #B314AE; — As RGB: color: rgb(179, 20, 174); — Tailwind CSS: bg-[hsl(302,80%,39%)] — CSS variable: --color-primary: hsl(302, 80%, 39%);