HSL(308, 40%, 71%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(308,40%,71%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(308, 40%, 71%) | color: hsl(308, 40%, 71%) | |
| HEX | #D397CB | color: #D397CB | |
| RGB | rgb(211, 151, 203) | color: rgb(211, 151, 203) | |
| CMYK | cmyk(0%, 28%, 4%, 17%) | — | |
| HSV | hsv(308, 28%, 83%) | — | |
| HWB | hwb(308 60% 17%) | color: hwb(308 60% 17%) | |
| OKLCH | oklch(0.7507 0.0992 331.21) | color: oklch(0.7507 0.0992 331.21) | |
| Lab | lab(69.68 30.82 -17.78) | color: lab(69.68 30.82 -17.78) | |
| LCH | lch(69.68 35.58 330.02) | color: lch(69.68 35.58 330.02) |
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)
#B9B8BE — rgb(185, 184, 190)
Deuteranopia (Green-blind)
#BDC1BB — rgb(189, 193, 187)
Tritanopia (Blue-blind)
#D0B4B2 — rgb(208, 180, 178)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(308, 40%, 71%);
text
color: hsl(308, 40%, 71%);
border
border: 2px solid hsl(308, 40%, 71%);
gradient light
background: linear-gradient(to right, hsl(308, 40%, 91%), hsl(308, 40%, 71%));
gradient dark
background: linear-gradient(to right, hsl(308, 40%, 71%), hsl(308, 40%, 51%))
hex
background-color: #D397CB;
tailwind
bg-[hsl(308,40%,71%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(308, 40%, 71%, 0.4);
css variable
--color-primary: hsl(308, 40%, 71%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(308, 40%, 71%)?
HEX: #D397CB | RGB: rgb(211, 151, 203) | CMYK: 0%, 28%, 4%, 17% | HSV: 308°, 28%, 83%. Copy any format from the conversion table above.
What colors go well with #D397CB?
The complementary color is HSL(128, 40%, 71%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(308, 40%, 71%) in CSS?
As HSL: color: hsl(308, 40%, 71%); — As HEX: color: #D397CB; — As RGB: color: rgb(211, 151, 203); — Tailwind CSS: bg-[hsl(308,40%,71%)] — CSS variable: --color-primary: hsl(308, 40%, 71%);