HSL(287, 50%, 54%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,50%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 50%, 54%) | color: hsl(287, 50%, 54%) | |
| HEX | #AB4FC4 | color: #AB4FC4 | |
| RGB | rgb(171, 79, 196) | color: rgb(171, 79, 196) | |
| CMYK | cmyk(13%, 60%, 0%, 23%) | — | |
| HSV | hsv(287, 60%, 77%) | — | |
| HWB | hwb(287 31% 23%) | color: hwb(287 31% 23%) | |
| OKLCH | oklch(0.5906 0.1899 318.53) | color: oklch(0.5906 0.1899 318.53) | |
| Lab | lab(49.78 55.19 -45.07) | color: lab(49.78 55.19 -45.07) | |
| LCH | lch(49.78 71.25 320.76) | color: lch(49.78 71.25 320.76) |
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)
#8382A8 — rgb(131, 130, 168)
Deuteranopia (Green-blind)
#898FA1 — rgb(137, 143, 161)
Tritanopia (Blue-blind)
#A6918C — rgb(166, 145, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 50%, 54%);
text
color: hsl(287, 50%, 54%);
border
border: 2px solid hsl(287, 50%, 54%);
gradient light
background: linear-gradient(to right, hsl(287, 50%, 74%), hsl(287, 50%, 54%));
gradient dark
background: linear-gradient(to right, hsl(287, 50%, 54%), hsl(287, 50%, 34%))
hex
background-color: #AB4FC4;
tailwind
bg-[hsl(287,50%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 50%, 54%, 0.4);
css variable
--color-primary: hsl(287, 50%, 54%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 50%, 54%)?
HEX: #AB4FC4 | RGB: rgb(171, 79, 196) | CMYK: 13%, 60%, 0%, 23% | HSV: 287°, 60%, 77%. Copy any format from the conversion table above.
What colors go well with #AB4FC4?
The complementary color is HSL(107, 50%, 54%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 50%, 54%) in CSS?
As HSL: color: hsl(287, 50%, 54%); — As HEX: color: #AB4FC4; — As RGB: color: rgb(171, 79, 196); — Tailwind CSS: bg-[hsl(287,50%,54%)] — CSS variable: --color-primary: hsl(287, 50%, 54%);