HSL(313, 72%, 28%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(313,72%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(313, 72%, 28%) | color: hsl(313, 72%, 28%) | |
| HEX | #7B1465 | color: #7B1465 | |
| RGB | rgb(123, 20, 101) | color: rgb(123, 20, 101) | |
| CMYK | cmyk(0%, 84%, 18%, 52%) | — | |
| HSV | hsv(313, 84%, 48%) | — | |
| HWB | hwb(313 8% 52%) | color: hwb(313 8% 52%) | |
| OKLCH | oklch(0.4051 0.1597 338.78) | color: oklch(0.4051 0.1597 338.78) | |
| Lab | lab(28.52 50.05 -21.31) | color: lab(28.52 50.05 -21.31) | |
| LCH | lch(28.52 54.4 336.94) | color: lch(28.52 54.4 336.94) |
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)
#4E4D51 — rgb(78, 77, 81)
Deuteranopia (Green-blind)
#545C4D — rgb(84, 92, 77)
Tritanopia (Blue-blind)
#76423F — rgb(118, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(313, 72%, 28%);
text
color: hsl(313, 72%, 28%);
border
border: 2px solid hsl(313, 72%, 28%);
gradient light
background: linear-gradient(to right, hsl(313, 72%, 48%), hsl(313, 72%, 28%));
gradient dark
background: linear-gradient(to right, hsl(313, 72%, 28%), hsl(313, 72%, 8%))
hex
background-color: #7B1465;
tailwind
bg-[hsl(313,72%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(313, 72%, 28%, 0.4);
css variable
--color-primary: hsl(313, 72%, 28%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(313, 72%, 28%)?
HEX: #7B1465 | RGB: rgb(123, 20, 101) | CMYK: 0%, 84%, 18%, 52% | HSV: 313°, 84%, 48%. Copy any format from the conversion table above.
What colors go well with #7B1465?
The complementary color is HSL(133, 72%, 28%). For a triadic harmony, use hues 313°, 73°, and 193°. For analogous combinations, try hues 283° and 343°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(313, 72%, 28%) in CSS?
As HSL: color: hsl(313, 72%, 28%); — As HEX: color: #7B1465; — As RGB: color: rgb(123, 20, 101); — Tailwind CSS: bg-[hsl(313,72%,28%)] — CSS variable: --color-primary: hsl(313, 72%, 28%);