HSL(312, 50%, 67%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,50%,67%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 50%, 67%) | color: hsl(312, 50%, 67%) | |
| HEX | #D581C4 | color: #D581C4 | |
| RGB | rgb(213, 129, 196) | color: rgb(213, 129, 196) | |
| CMYK | cmyk(0%, 39%, 8%, 16%) | — | |
| HSV | hsv(312, 39%, 84%) | — | |
| HWB | hwb(312 51% 16%) | color: hwb(312 51% 16%) | |
| OKLCH | oklch(0.7136 0.1335 334.68) | color: oklch(0.7136 0.1335 334.68) | |
| Lab | lab(64.83 42.02 -21.22) | color: lab(64.83 42.02 -21.22) | |
| LCH | lch(64.83 47.07 333.21) | color: lch(64.83 47.07 333.21) |
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)
#B1B0B4 — rgb(177, 176, 180)
Deuteranopia (Green-blind)
#B6BCB0 — rgb(182, 188, 176)
Tritanopia (Blue-blind)
#D1A7A4 — rgb(209, 167, 164)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 50%, 67%);
text
color: hsl(312, 50%, 67%);
border
border: 2px solid hsl(312, 50%, 67%);
gradient light
background: linear-gradient(to right, hsl(312, 50%, 87%), hsl(312, 50%, 67%));
gradient dark
background: linear-gradient(to right, hsl(312, 50%, 67%), hsl(312, 50%, 47%))
hex
background-color: #D581C4;
tailwind
bg-[hsl(312,50%,67%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 50%, 67%, 0.4);
css variable
--color-primary: hsl(312, 50%, 67%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 50%, 67%)?
HEX: #D581C4 | RGB: rgb(213, 129, 196) | CMYK: 0%, 39%, 8%, 16% | HSV: 312°, 39%, 84%. Copy any format from the conversion table above.
What colors go well with #D581C4?
The complementary color is HSL(132, 50%, 67%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(312, 50%, 67%) in CSS?
As HSL: color: hsl(312, 50%, 67%); — As HEX: color: #D581C4; — As RGB: color: rgb(213, 129, 196); — Tailwind CSS: bg-[hsl(312,50%,67%)] — CSS variable: --color-primary: hsl(312, 50%, 67%);