HSL(300, 40%, 53%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(300,40%,53%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(300, 40%, 53%) | color: hsl(300, 40%, 53%) | |
| HEX | #B757B7 | color: #B757B7 | |
| RGB | rgb(183, 87, 183) | color: rgb(183, 87, 183) | |
| CMYK | cmyk(0%, 52%, 0%, 28%) | — | |
| HSV | hsv(300, 52%, 72%) | — | |
| HWB | hwb(300 35% 28%) | color: hwb(300 35% 28%) | |
| OKLCH | oklch(0.6094 0.1718 327.43) | color: oklch(0.6094 0.1718 327.43) | |
| Lab | lab(52.18 52.08 -33.65) | color: lab(52.18 52.08 -33.65) | |
| LCH | lch(52.18 62.01 327.13) | color: lch(52.18 62.01 327.13) |
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)
#8D8DA0 — rgb(141, 141, 160)
Deuteranopia (Green-blind)
#939A9A — rgb(147, 154, 154)
Tritanopia (Blue-blind)
#B28D89 — rgb(178, 141, 137)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(300, 40%, 53%);
text
color: hsl(300, 40%, 53%);
border
border: 2px solid hsl(300, 40%, 53%);
gradient light
background: linear-gradient(to right, hsl(300, 40%, 73%), hsl(300, 40%, 53%));
gradient dark
background: linear-gradient(to right, hsl(300, 40%, 53%), hsl(300, 40%, 33%))
hex
background-color: #B757B7;
tailwind
bg-[hsl(300,40%,53%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(300, 40%, 53%, 0.4);
css variable
--color-primary: hsl(300, 40%, 53%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(300, 40%, 53%)?
HEX: #B757B7 | RGB: rgb(183, 87, 183) | CMYK: 0%, 52%, 0%, 28% | HSV: 300°, 52%, 72%. Copy any format from the conversion table above.
What colors go well with #B757B7?
The complementary color is HSL(120, 40%, 53%). For a triadic harmony, use hues 300°, 60°, and 180°. For analogous combinations, try hues 270° and 330°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(300, 40%, 53%) in CSS?
As HSL: color: hsl(300, 40%, 53%); — As HEX: color: #B757B7; — As RGB: color: rgb(183, 87, 183); — Tailwind CSS: bg-[hsl(300,40%,53%)] — CSS variable: --color-primary: hsl(300, 40%, 53%);