HSL(312, 97%, 24%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,97%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 97%, 24%) | color: hsl(312, 97%, 24%) | |
| HEX | #790261 | color: #790261 | |
| RGB | rgb(121, 2, 97) | color: rgb(121, 2, 97) | |
| CMYK | cmyk(0%, 98%, 20%, 53%) | — | |
| HSV | hsv(312, 98%, 47%) | — | |
| HWB | hwb(312 1% 53%) | color: hwb(312 1% 53%) | |
| OKLCH | oklch(0.3903 0.1683 339.59) | color: oklch(0.3903 0.1683 339.59) | |
| Lab | lab(26.66 52.69 -21.64) | color: lab(26.66 52.69 -21.64) | |
| LCH | lch(26.66 56.96 337.67) | color: lch(26.66 56.96 337.67) |
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)
#45444A — rgb(69, 68, 74)
Deuteranopia (Green-blind)
#4C5545 — rgb(76, 85, 69)
Tritanopia (Blue-blind)
#733834 — rgb(115, 56, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 97%, 24%);
text
color: hsl(312, 97%, 24%);
border
border: 2px solid hsl(312, 97%, 24%);
gradient light
background: linear-gradient(to right, hsl(312, 97%, 44%), hsl(312, 97%, 24%));
gradient dark
background: linear-gradient(to right, hsl(312, 97%, 24%), hsl(312, 97%, 4%))
hex
background-color: #790261;
tailwind
bg-[hsl(312,97%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 97%, 24%, 0.4);
css variable
--color-primary: hsl(312, 97%, 24%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 97%, 24%)?
HEX: #790261 | RGB: rgb(121, 2, 97) | CMYK: 0%, 98%, 20%, 53% | HSV: 312°, 98%, 47%. Copy any format from the conversion table above.
What colors go well with #790261?
The complementary color is HSL(132, 97%, 24%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(312, 97%, 24%) in CSS?
As HSL: color: hsl(312, 97%, 24%); — As HEX: color: #790261; — As RGB: color: rgb(121, 2, 97); — Tailwind CSS: bg-[hsl(312,97%,24%)] — CSS variable: --color-primary: hsl(312, 97%, 24%);