HSL(301, 70%, 50%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(301,70%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(301, 70%, 50%) | color: hsl(301, 70%, 50%) | |
| HEX | #D926D6 | color: #D926D6 | |
| RGB | rgb(217, 38, 214) | color: rgb(217, 38, 214) | |
| CMYK | cmyk(0%, 82%, 1%, 15%) | — | |
| HSV | hsv(301, 82%, 85%) | — | |
| HWB | hwb(301 15% 15%) | color: hwb(301 15% 15%) | |
| OKLCH | oklch(0.6303 0.2688 328.99) | color: oklch(0.6303 0.2688 328.99) | |
| Lab | lab(52.95 81.98 -49.94) | color: lab(52.95 81.98 -49.94) | |
| LCH | lch(52.95 95.99 328.65) | color: lch(52.95 95.99 328.65) |
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)
#8B8AAB — rgb(139, 138, 171)
Deuteranopia (Green-blind)
#96A3A1 — rgb(150, 163, 161)
Tritanopia (Blue-blind)
#D08A82 — rgb(208, 138, 130)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(301, 70%, 50%);
text
color: hsl(301, 70%, 50%);
border
border: 2px solid hsl(301, 70%, 50%);
gradient light
background: linear-gradient(to right, hsl(301, 70%, 70%), hsl(301, 70%, 50%));
gradient dark
background: linear-gradient(to right, hsl(301, 70%, 50%), hsl(301, 70%, 30%))
hex
background-color: #D926D6;
tailwind
bg-[hsl(301,70%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(301, 70%, 50%, 0.4);
css variable
--color-primary: hsl(301, 70%, 50%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(301, 70%, 50%)?
HEX: #D926D6 | RGB: rgb(217, 38, 214) | CMYK: 0%, 82%, 1%, 15% | HSV: 301°, 82%, 85%. Copy any format from the conversion table above.
What colors go well with #D926D6?
The complementary color is HSL(121, 70%, 50%). 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, 70%, 50%) in CSS?
As HSL: color: hsl(301, 70%, 50%); — As HEX: color: #D926D6; — As RGB: color: rgb(217, 38, 214); — Tailwind CSS: bg-[hsl(301,70%,50%)] — CSS variable: --color-primary: hsl(301, 70%, 50%);