HSL(301, 40%, 71%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(301,40%,71%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(301, 40%, 71%) | color: hsl(301, 40%, 71%) | |
| HEX | #D397D2 | color: #D397D2 | |
| RGB | rgb(211, 151, 210) | color: rgb(211, 151, 210) | |
| CMYK | cmyk(0%, 28%, 0%, 17%) | — | |
| HSV | hsv(301, 28%, 83%) | — | |
| HWB | hwb(301 60% 17%) | color: hwb(301 60% 17%) | |
| OKLCH | oklch(0.7534 0.1059 327.12) | color: oklch(0.7534 0.1059 327.12) | |
| Lab | lab(69.92 32.1 -21.29) | color: lab(69.92 32.1 -21.29) | |
| LCH | lch(69.92 38.52 326.45) | color: lch(69.92 38.52 326.45) |
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)
#B9B8C4 — rgb(185, 184, 196)
Deuteranopia (Green-blind)
#BDC1C0 — rgb(189, 193, 192)
Tritanopia (Blue-blind)
#D0B8B6 — rgb(208, 184, 182)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(301, 40%, 71%);
text
color: hsl(301, 40%, 71%);
border
border: 2px solid hsl(301, 40%, 71%);
gradient light
background: linear-gradient(to right, hsl(301, 40%, 91%), hsl(301, 40%, 71%));
gradient dark
background: linear-gradient(to right, hsl(301, 40%, 71%), hsl(301, 40%, 51%))
hex
background-color: #D397D2;
tailwind
bg-[hsl(301,40%,71%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(301, 40%, 71%, 0.4);
css variable
--color-primary: hsl(301, 40%, 71%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(301, 40%, 71%)?
HEX: #D397D2 | RGB: rgb(211, 151, 210) | CMYK: 0%, 28%, 0%, 17% | HSV: 301°, 28%, 83%. Copy any format from the conversion table above.
What colors go well with #D397D2?
The complementary color is HSL(121, 40%, 71%). For a triadic harmony, use hues 301°, 61°, and 181°. For analogous combinations, try hues 271° and 331°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(301, 40%, 71%) in CSS?
As HSL: color: hsl(301, 40%, 71%); — As HEX: color: #D397D2; — As RGB: color: rgb(211, 151, 210); — Tailwind CSS: bg-[hsl(301,40%,71%)] — CSS variable: --color-primary: hsl(301, 40%, 71%);