HSL(308, 40%, 47%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(308,40%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(308, 40%, 47%) | color: hsl(308, 40%, 47%) | |
| HEX | #A8489B | color: #A8489B | |
| RGB | rgb(168, 72, 155) | color: rgb(168, 72, 155) | |
| CMYK | cmyk(0%, 57%, 8%, 34%) | — | |
| HSV | hsv(308, 57%, 66%) | — | |
| HWB | hwb(308 28% 34%) | color: hwb(308 28% 34%) | |
| OKLCH | oklch(0.556 0.1615 333.04) | color: oklch(0.556 0.1615 333.04) | |
| Lab | lab(46.08 50.11 -26.87) | color: lab(46.08 50.11 -26.87) | |
| LCH | lch(46.08 56.86 331.8) | color: lch(46.08 56.86 331.8) |
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)
#7E7E87 — rgb(126, 126, 135)
Deuteranopia (Green-blind)
#848B82 — rgb(132, 139, 130)
Tritanopia (Blue-blind)
#A37774 — rgb(163, 119, 116)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(308, 40%, 47%);
text
color: hsl(308, 40%, 47%);
border
border: 2px solid hsl(308, 40%, 47%);
gradient light
background: linear-gradient(to right, hsl(308, 40%, 67%), hsl(308, 40%, 47%));
gradient dark
background: linear-gradient(to right, hsl(308, 40%, 47%), hsl(308, 40%, 27%))
hex
background-color: #A8489B;
tailwind
bg-[hsl(308,40%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(308, 40%, 47%, 0.4);
css variable
--color-primary: hsl(308, 40%, 47%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(308, 40%, 47%)?
HEX: #A8489B | RGB: rgb(168, 72, 155) | CMYK: 0%, 57%, 8%, 34% | HSV: 308°, 57%, 66%. Copy any format from the conversion table above.
What colors go well with #A8489B?
The complementary color is HSL(128, 40%, 47%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(308, 40%, 47%) in CSS?
As HSL: color: hsl(308, 40%, 47%); — As HEX: color: #A8489B; — As RGB: color: rgb(168, 72, 155); — Tailwind CSS: bg-[hsl(308,40%,47%)] — CSS variable: --color-primary: hsl(308, 40%, 47%);