HSL(306, 40%, 64%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(306,40%,64%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(306, 40%, 64%) | color: hsl(306, 40%, 64%) | |
| HEX | #C87EC1 | color: #C87EC1 | |
| RGB | rgb(200, 126, 193) | color: rgb(200, 126, 193) | |
| CMYK | cmyk(0%, 37%, 4%, 22%) | — | |
| HSV | hsv(306, 37%, 78%) | — | |
| HWB | hwb(306 49% 22%) | color: hwb(306 49% 22%) | |
| OKLCH | oklch(0.6928 0.1263 330.24) | color: oklch(0.6928 0.1263 330.24) | |
| Lab | lab(62.55 38.91 -23.15) | color: lab(62.55 38.91 -23.15) | |
| LCH | lch(62.55 45.28 329.25) | color: lch(62.55 45.28 329.25) |
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)
#A8A7B1 — rgb(168, 167, 177)
Deuteranopia (Green-blind)
#ACB2AD — rgb(172, 178, 173)
Tritanopia (Blue-blind)
#C4A4A1 — rgb(196, 164, 161)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(306, 40%, 64%);
text
color: hsl(306, 40%, 64%);
border
border: 2px solid hsl(306, 40%, 64%);
gradient light
background: linear-gradient(to right, hsl(306, 40%, 84%), hsl(306, 40%, 64%));
gradient dark
background: linear-gradient(to right, hsl(306, 40%, 64%), hsl(306, 40%, 44%))
hex
background-color: #C87EC1;
tailwind
bg-[hsl(306,40%,64%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(306, 40%, 64%, 0.4);
css variable
--color-primary: hsl(306, 40%, 64%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(306, 40%, 64%)?
HEX: #C87EC1 | RGB: rgb(200, 126, 193) | CMYK: 0%, 37%, 4%, 22% | HSV: 306°, 37%, 78%. Copy any format from the conversion table above.
What colors go well with #C87EC1?
The complementary color is HSL(126, 40%, 64%). For a triadic harmony, use hues 306°, 66°, and 186°. For analogous combinations, try hues 276° and 336°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(306, 40%, 64%) in CSS?
As HSL: color: hsl(306, 40%, 64%); — As HEX: color: #C87EC1; — As RGB: color: rgb(200, 126, 193); — Tailwind CSS: bg-[hsl(306,40%,64%)] — CSS variable: --color-primary: hsl(306, 40%, 64%);