HSL(287, 68%, 78%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,68%,78%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 68%, 78%) | color: hsl(287, 68%, 78%) | |
| HEX | #DDA1ED | color: #DDA1ED | |
| RGB | rgb(221, 161, 237) | color: rgb(221, 161, 237) | |
| CMYK | cmyk(7%, 32%, 0%, 7%) | — | |
| HSV | hsv(287, 32%, 93%) | — | |
| HWB | hwb(287 63% 7%) | color: hwb(287 63% 7%) | |
| OKLCH | oklch(0.7913 0.1228 319.04) | color: oklch(0.7913 0.1228 319.04) | |
| Lab | lab(74.18 35.04 -29.49) | color: lab(74.18 35.04 -29.49) | |
| LCH | lch(74.18 45.8 319.92) | color: lch(74.18 45.8 319.92) |
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)
#C3C2DB — rgb(195, 194, 219)
Deuteranopia (Green-blind)
#C7CBD6 — rgb(199, 203, 214)
Tritanopia (Blue-blind)
#DACCC9 — rgb(218, 204, 201)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 68%, 78%);
text
color: hsl(287, 68%, 78%);
border
border: 2px solid hsl(287, 68%, 78%);
gradient light
background: linear-gradient(to right, hsl(287, 68%, 98%), hsl(287, 68%, 78%));
gradient dark
background: linear-gradient(to right, hsl(287, 68%, 78%), hsl(287, 68%, 58%))
hex
background-color: #DDA1ED;
tailwind
bg-[hsl(287,68%,78%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 68%, 78%, 0.4);
css variable
--color-primary: hsl(287, 68%, 78%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 68%, 78%)?
HEX: #DDA1ED | RGB: rgb(221, 161, 237) | CMYK: 7%, 32%, 0%, 7% | HSV: 287°, 32%, 93%. Copy any format from the conversion table above.
What colors go well with #DDA1ED?
The complementary color is HSL(107, 68%, 78%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 68%, 78%) in CSS?
As HSL: color: hsl(287, 68%, 78%); — As HEX: color: #DDA1ED; — As RGB: color: rgb(221, 161, 237); — Tailwind CSS: bg-[hsl(287,68%,78%)] — CSS variable: --color-primary: hsl(287, 68%, 78%);