HSL(311, 65%, 45%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(311,65%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(311, 65%, 45%) | color: hsl(311, 65%, 45%) | |
| HEX | #BD28A2 | color: #BD28A2 | |
| RGB | rgb(189, 40, 162) | color: rgb(189, 40, 162) | |
| CMYK | cmyk(0%, 79%, 14%, 26%) | — | |
| HSV | hsv(311, 79%, 74%) | — | |
| HWB | hwb(311 16% 26%) | color: hwb(311 16% 26%) | |
| OKLCH | oklch(0.5599 0.2193 336.87) | color: oklch(0.5599 0.2193 336.87) | |
| Lab | lab(45.56 68.39 -31.6) | color: lab(45.56 68.39 -31.6) | |
| LCH | lch(45.56 75.34 335.2) | color: lch(45.56 75.34 335.2) |
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)
#7C7B84 — rgb(124, 123, 132)
Deuteranopia (Green-blind)
#85907D — rgb(133, 144, 125)
Tritanopia (Blue-blind)
#B66D68 — rgb(182, 109, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(311, 65%, 45%);
text
color: hsl(311, 65%, 45%);
border
border: 2px solid hsl(311, 65%, 45%);
gradient light
background: linear-gradient(to right, hsl(311, 65%, 65%), hsl(311, 65%, 45%));
gradient dark
background: linear-gradient(to right, hsl(311, 65%, 45%), hsl(311, 65%, 25%))
hex
background-color: #BD28A2;
tailwind
bg-[hsl(311,65%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(311, 65%, 45%, 0.4);
css variable
--color-primary: hsl(311, 65%, 45%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(311, 65%, 45%)?
HEX: #BD28A2 | RGB: rgb(189, 40, 162) | CMYK: 0%, 79%, 14%, 26% | HSV: 311°, 79%, 74%. Copy any format from the conversion table above.
What colors go well with #BD28A2?
The complementary color is HSL(131, 65%, 45%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(311, 65%, 45%) in CSS?
As HSL: color: hsl(311, 65%, 45%); — As HEX: color: #BD28A2; — As RGB: color: rgb(189, 40, 162); — Tailwind CSS: bg-[hsl(311,65%,45%)] — CSS variable: --color-primary: hsl(311, 65%, 45%);