HSL(302, 50%, 50%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,50%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 50%, 50%) | color: hsl(302, 50%, 50%) | |
| HEX | #BF40BB | color: #BF40BB | |
| RGB | rgb(191, 64, 187) | color: rgb(191, 64, 187) | |
| CMYK | cmyk(0%, 66%, 2%, 25%) | — | |
| HSV | hsv(302, 66%, 75%) | — | |
| HWB | hwb(302 26% 25%) | color: hwb(302 26% 25%) | |
| OKLCH | oklch(0.5958 0.2125 329.16) | color: oklch(0.5958 0.2125 329.16) | |
| Lab | lab(49.9 64.84 -39.48) | color: lab(49.9 64.84 -39.48) | |
| LCH | lch(49.9 75.91 328.66) | color: lch(49.9 75.91 328.66) |
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)
#88879D — rgb(136, 135, 157)
Deuteranopia (Green-blind)
#8F9996 — rgb(143, 153, 150)
Tritanopia (Blue-blind)
#B98681 — rgb(185, 134, 129)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 50%, 50%);
text
color: hsl(302, 50%, 50%);
border
border: 2px solid hsl(302, 50%, 50%);
gradient light
background: linear-gradient(to right, hsl(302, 50%, 70%), hsl(302, 50%, 50%));
gradient dark
background: linear-gradient(to right, hsl(302, 50%, 50%), hsl(302, 50%, 30%))
hex
background-color: #BF40BB;
tailwind
bg-[hsl(302,50%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 50%, 50%, 0.4);
css variable
--color-primary: hsl(302, 50%, 50%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 50%, 50%)?
HEX: #BF40BB | RGB: rgb(191, 64, 187) | CMYK: 0%, 66%, 2%, 25% | HSV: 302°, 66%, 75%. Copy any format from the conversion table above.
What colors go well with #BF40BB?
The complementary color is HSL(122, 50%, 50%). 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, 50%, 50%) in CSS?
As HSL: color: hsl(302, 50%, 50%); — As HEX: color: #BF40BB; — As RGB: color: rgb(191, 64, 187); — Tailwind CSS: bg-[hsl(302,50%,50%)] — CSS variable: --color-primary: hsl(302, 50%, 50%);