HSL(298, 65%, 64%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,65%,64%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 65%, 64%) | color: hsl(298, 65%, 64%) | |
| HEX | #DB68DF | color: #DB68DF | |
| RGB | rgb(219, 104, 223) | color: rgb(219, 104, 223) | |
| CMYK | cmyk(2%, 53%, 0%, 13%) | — | |
| HSV | hsv(298, 53%, 87%) | — | |
| HWB | hwb(298 41% 13%) | color: hwb(298 41% 13%) | |
| OKLCH | oklch(0.6971 0.2022 326.18) | color: oklch(0.6971 0.2022 326.18) | |
| Lab | lab(61.9 60.94 -40.84) | color: lab(61.9 60.94 -40.84) | |
| LCH | lch(61.9 73.36 326.17) | color: lch(61.9 73.36 326.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)
#A9A8C2 — rgb(169, 168, 194)
Deuteranopia (Green-blind)
#B0B9BB — rgb(176, 185, 187)
Tritanopia (Blue-blind)
#D5ABA6 — rgb(213, 171, 166)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 65%, 64%);
text
color: hsl(298, 65%, 64%);
border
border: 2px solid hsl(298, 65%, 64%);
gradient light
background: linear-gradient(to right, hsl(298, 65%, 84%), hsl(298, 65%, 64%));
gradient dark
background: linear-gradient(to right, hsl(298, 65%, 64%), hsl(298, 65%, 44%))
hex
background-color: #DB68DF;
tailwind
bg-[hsl(298,65%,64%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 65%, 64%, 0.4);
css variable
--color-primary: hsl(298, 65%, 64%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 65%, 64%)?
HEX: #DB68DF | RGB: rgb(219, 104, 223) | CMYK: 2%, 53%, 0%, 13% | HSV: 298°, 53%, 87%. Copy any format from the conversion table above.
What colors go well with #DB68DF?
The complementary color is HSL(118, 65%, 64%). For a triadic harmony, use hues 298°, 58°, and 178°. For analogous combinations, try hues 268° and 328°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(298, 65%, 64%) in CSS?
As HSL: color: hsl(298, 65%, 64%); — As HEX: color: #DB68DF; — As RGB: color: rgb(219, 104, 223); — Tailwind CSS: bg-[hsl(298,65%,64%)] — CSS variable: --color-primary: hsl(298, 65%, 64%);