HSL(302, 40%, 57%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,40%,57%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 40%, 57%) | color: hsl(302, 40%, 57%) | |
| HEX | #BD65BA | color: #BD65BA | |
| RGB | rgb(189, 101, 186) | color: rgb(189, 101, 186) | |
| CMYK | cmyk(0%, 47%, 2%, 26%) | — | |
| HSV | hsv(302, 47%, 74%) | — | |
| HWB | hwb(302 39% 26%) | color: hwb(302 39% 26%) | |
| OKLCH | oklch(0.638 0.1555 328.46) | color: oklch(0.638 0.1555 328.46) | |
| Lab | lab(55.76 47.37 -29.75) | color: lab(55.76 47.37 -29.75) | |
| LCH | lch(55.76 55.94 327.87) | color: lch(55.76 55.94 327.87) |
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)
#9796A5 — rgb(151, 150, 165)
Deuteranopia (Green-blind)
#9CA3A1 — rgb(156, 163, 161)
Tritanopia (Blue-blind)
#B99592 — rgb(185, 149, 146)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 40%, 57%);
text
color: hsl(302, 40%, 57%);
border
border: 2px solid hsl(302, 40%, 57%);
gradient light
background: linear-gradient(to right, hsl(302, 40%, 77%), hsl(302, 40%, 57%));
gradient dark
background: linear-gradient(to right, hsl(302, 40%, 57%), hsl(302, 40%, 37%))
hex
background-color: #BD65BA;
tailwind
bg-[hsl(302,40%,57%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 40%, 57%, 0.4);
css variable
--color-primary: hsl(302, 40%, 57%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 40%, 57%)?
HEX: #BD65BA | RGB: rgb(189, 101, 186) | CMYK: 0%, 47%, 2%, 26% | HSV: 302°, 47%, 74%. Copy any format from the conversion table above.
What colors go well with #BD65BA?
The complementary color is HSL(122, 40%, 57%). 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, 40%, 57%) in CSS?
As HSL: color: hsl(302, 40%, 57%); — As HEX: color: #BD65BA; — As RGB: color: rgb(189, 101, 186); — Tailwind CSS: bg-[hsl(302,40%,57%)] — CSS variable: --color-primary: hsl(302, 40%, 57%);