HSL(299, 75%, 49%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(299,75%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(299, 75%, 49%) | color: hsl(299, 75%, 49%) | |
| HEX | #D81FDB | color: #D81FDB | |
| RGB | rgb(216, 31, 219) | color: rgb(216, 31, 219) | |
| CMYK | cmyk(1%, 86%, 0%, 14%) | — | |
| HSV | hsv(299, 86%, 86%) | — | |
| HWB | hwb(299 12% 14%) | color: hwb(299 12% 14%) | |
| OKLCH | oklch(0.6286 0.276 327.49) | color: oklch(0.6286 0.276 327.49) | |
| Lab | lab(52.62 83.85 -53.33) | color: lab(52.62 83.85 -53.33) | |
| LCH | lch(52.62 99.37 327.54) | color: lch(52.62 99.37 327.54) |
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)
#8886AE — rgb(136, 134, 174)
Deuteranopia (Green-blind)
#93A1A3 — rgb(147, 161, 163)
Tritanopia (Blue-blind)
#CF8A82 — rgb(207, 138, 130)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(299, 75%, 49%);
text
color: hsl(299, 75%, 49%);
border
border: 2px solid hsl(299, 75%, 49%);
gradient light
background: linear-gradient(to right, hsl(299, 75%, 69%), hsl(299, 75%, 49%));
gradient dark
background: linear-gradient(to right, hsl(299, 75%, 49%), hsl(299, 75%, 29%))
hex
background-color: #D81FDB;
tailwind
bg-[hsl(299,75%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(299, 75%, 49%, 0.4);
css variable
--color-primary: hsl(299, 75%, 49%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(299, 75%, 49%)?
HEX: #D81FDB | RGB: rgb(216, 31, 219) | CMYK: 1%, 86%, 0%, 14% | HSV: 299°, 86%, 86%. Copy any format from the conversion table above.
What colors go well with #D81FDB?
The complementary color is HSL(119, 75%, 49%). For a triadic harmony, use hues 299°, 59°, and 179°. For analogous combinations, try hues 269° and 329°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(299, 75%, 49%) in CSS?
As HSL: color: hsl(299, 75%, 49%); — As HEX: color: #D81FDB; — As RGB: color: rgb(216, 31, 219); — Tailwind CSS: bg-[hsl(299,75%,49%)] — CSS variable: --color-primary: hsl(299, 75%, 49%);