HSL(312, 40%, 70%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,40%,70%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 40%, 70%) | color: hsl(312, 40%, 70%) | |
| HEX | #D194C5 | color: #D194C5 | |
| RGB | rgb(209, 148, 197) | color: rgb(209, 148, 197) | |
| CMYK | cmyk(0%, 29%, 6%, 18%) | — | |
| HSV | hsv(312, 29%, 82%) | — | |
| HWB | hwb(312 58% 18%) | color: hwb(312 58% 18%) | |
| OKLCH | oklch(0.7412 0.0975 333.7) | color: oklch(0.7412 0.0975 333.7) | |
| Lab | lab(68.58 30.7 -16.13) | color: lab(68.58 30.7 -16.13) | |
| LCH | lch(68.58 34.68 332.28) | color: lch(68.58 34.68 332.28) |
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)
#B7B6B9 — rgb(183, 182, 185)
Deuteranopia (Green-blind)
#BABFB6 — rgb(186, 191, 182)
Tritanopia (Blue-blind)
#CEB0AE — rgb(206, 176, 174)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 40%, 70%);
text
color: hsl(312, 40%, 70%);
border
border: 2px solid hsl(312, 40%, 70%);
gradient light
background: linear-gradient(to right, hsl(312, 40%, 90%), hsl(312, 40%, 70%));
gradient dark
background: linear-gradient(to right, hsl(312, 40%, 70%), hsl(312, 40%, 50%))
hex
background-color: #D194C5;
tailwind
bg-[hsl(312,40%,70%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 40%, 70%, 0.4);
css variable
--color-primary: hsl(312, 40%, 70%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 40%, 70%)?
HEX: #D194C5 | RGB: rgb(209, 148, 197) | CMYK: 0%, 29%, 6%, 18% | HSV: 312°, 29%, 82%. Copy any format from the conversion table above.
What colors go well with #D194C5?
The complementary color is HSL(132, 40%, 70%). 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, 40%, 70%) in CSS?
As HSL: color: hsl(312, 40%, 70%); — As HEX: color: #D194C5; — As RGB: color: rgb(209, 148, 197); — Tailwind CSS: bg-[hsl(312,40%,70%)] — CSS variable: --color-primary: hsl(312, 40%, 70%);