HSL(285, 50%, 79%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(285,50%,79%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(285, 50%, 79%) | color: hsl(285, 50%, 79%) | |
| HEX | #D7AFE4 | color: #D7AFE4 | |
| RGB | rgb(215, 175, 228) | color: rgb(215, 175, 228) | |
| CMYK | cmyk(6%, 23%, 0%, 11%) | — | |
| HSV | hsv(285, 23%, 89%) | — | |
| HWB | hwb(285 69% 11%) | color: hwb(285 69% 11%) | |
| OKLCH | oklch(0.8067 0.085 317.77) | color: oklch(0.8067 0.085 317.77) | |
| Lab | lab(76.5 23.8 -21.1) | color: lab(76.5 23.8 -21.1) | |
| LCH | lch(76.5 31.81 318.44) | color: lch(76.5 31.81 318.44) |
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)
#C6C5D7 — rgb(198, 197, 215)
Deuteranopia (Green-blind)
#C8CBD4 — rgb(200, 203, 212)
Tritanopia (Blue-blind)
#D5CDCB — rgb(213, 205, 203)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(285, 50%, 79%);
text
color: hsl(285, 50%, 79%);
border
border: 2px solid hsl(285, 50%, 79%);
gradient light
background: linear-gradient(to right, hsl(285, 50%, 99%), hsl(285, 50%, 79%));
gradient dark
background: linear-gradient(to right, hsl(285, 50%, 79%), hsl(285, 50%, 59%))
hex
background-color: #D7AFE4;
tailwind
bg-[hsl(285,50%,79%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(285, 50%, 79%, 0.4);
css variable
--color-primary: hsl(285, 50%, 79%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(285, 50%, 79%)?
HEX: #D7AFE4 | RGB: rgb(215, 175, 228) | CMYK: 6%, 23%, 0%, 11% | HSV: 285°, 23%, 89%. Copy any format from the conversion table above.
What colors go well with #D7AFE4?
The complementary color is HSL(105, 50%, 79%). For a triadic harmony, use hues 285°, 45°, and 165°. For analogous combinations, try hues 255° and 315°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(285, 50%, 79%) in CSS?
As HSL: color: hsl(285, 50%, 79%); — As HEX: color: #D7AFE4; — As RGB: color: rgb(215, 175, 228); — Tailwind CSS: bg-[hsl(285,50%,79%)] — CSS variable: --color-primary: hsl(285, 50%, 79%);