HSL(310, 40%, 59%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(310,40%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(310, 40%, 59%) | color: hsl(310, 40%, 59%) | |
| HEX | #C06DB2 | color: #C06DB2 | |
| RGB | rgb(192, 109, 178) | color: rgb(192, 109, 178) | |
| CMYK | cmyk(0%, 43%, 7%, 25%) | — | |
| HSV | hsv(310, 43%, 75%) | — | |
| HWB | hwb(310 43% 25%) | color: hwb(310 43% 25%) | |
| OKLCH | oklch(0.6502 0.1367 333.53) | color: oklch(0.6502 0.1367 333.53) | |
| Lab | lab(57.42 42.72 -22.55) | color: lab(57.42 42.72 -22.55) | |
| LCH | lch(57.42 48.31 332.17) | color: lch(57.42 48.31 332.17) |
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)
#9C9BA1 — rgb(156, 155, 161)
Deuteranopia (Green-blind)
#A1A79D — rgb(161, 167, 157)
Tritanopia (Blue-blind)
#BC9491 — rgb(188, 148, 145)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(310, 40%, 59%);
text
color: hsl(310, 40%, 59%);
border
border: 2px solid hsl(310, 40%, 59%);
gradient light
background: linear-gradient(to right, hsl(310, 40%, 79%), hsl(310, 40%, 59%));
gradient dark
background: linear-gradient(to right, hsl(310, 40%, 59%), hsl(310, 40%, 39%))
hex
background-color: #C06DB2;
tailwind
bg-[hsl(310,40%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(310, 40%, 59%, 0.4);
css variable
--color-primary: hsl(310, 40%, 59%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(310, 40%, 59%)?
HEX: #C06DB2 | RGB: rgb(192, 109, 178) | CMYK: 0%, 43%, 7%, 25% | HSV: 310°, 43%, 75%. Copy any format from the conversion table above.
What colors go well with #C06DB2?
The complementary color is HSL(130, 40%, 59%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(310, 40%, 59%) in CSS?
As HSL: color: hsl(310, 40%, 59%); — As HEX: color: #C06DB2; — As RGB: color: rgb(192, 109, 178); — Tailwind CSS: bg-[hsl(310,40%,59%)] — CSS variable: --color-primary: hsl(310, 40%, 59%);