HSL(299, 95%, 35%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(299,95%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(299, 95%, 35%) | color: hsl(299, 95%, 35%) | |
| HEX | #AB04AE | color: #AB04AE | |
| RGB | rgb(171, 4, 174) | color: rgb(171, 4, 174) | |
| CMYK | cmyk(2%, 98%, 0%, 32%) | — | |
| HSV | hsv(299, 98%, 68%) | — | |
| HWB | hwb(299 1% 32%) | color: hwb(299 1% 32%) | |
| OKLCH | oklch(0.523 0.2397 327.42) | color: oklch(0.523 0.2397 327.42) | |
| Lab | lab(40.9 72.85 -46.35) | color: lab(40.9 72.85 -46.35) | |
| LCH | lch(40.9 86.34 327.53) | color: lch(40.9 86.34 327.53) |
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: white
Color Blindness Simulation
Protanopia (Red-blind)
#636185 — rgb(99, 97, 133)
Deuteranopia (Green-blind)
#6C797B — rgb(108, 121, 123)
Tritanopia (Blue-blind)
#A3645D — rgb(163, 100, 93)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(299, 95%, 35%);
text
color: hsl(299, 95%, 35%);
border
border: 2px solid hsl(299, 95%, 35%);
gradient light
background: linear-gradient(to right, hsl(299, 95%, 55%), hsl(299, 95%, 35%));
gradient dark
background: linear-gradient(to right, hsl(299, 95%, 35%), hsl(299, 95%, 15%))
hex
background-color: #AB04AE;
tailwind
bg-[hsl(299,95%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(299, 95%, 35%, 0.4);
css variable
--color-primary: hsl(299, 95%, 35%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(299, 95%, 35%)?
HEX: #AB04AE | RGB: rgb(171, 4, 174) | CMYK: 2%, 98%, 0%, 32% | HSV: 299°, 98%, 68%. Copy any format from the conversion table above.
What colors go well with #AB04AE?
The complementary color is HSL(119, 95%, 35%). 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, 95%, 35%) in CSS?
As HSL: color: hsl(299, 95%, 35%); — As HEX: color: #AB04AE; — As RGB: color: rgb(171, 4, 174); — Tailwind CSS: bg-[hsl(299,95%,35%)] — CSS variable: --color-primary: hsl(299, 95%, 35%);