HSL(312, 94%, 52%)
Vivid Purple — Purple color
Adjust Color
Color Information
Color Name
Vivid Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,94%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 94%, 52%) | color: hsl(312, 94%, 52%) | |
| HEX | #F812CA | color: #F812CA | |
| RGB | rgb(248, 18, 202) | color: rgb(248, 18, 202) | |
| CMYK | cmyk(0%, 93%, 19%, 3%) | — | |
| HSV | hsv(312, 93%, 97%) | — | |
| HWB | hwb(312 7% 3%) | color: hwb(312 7% 3%) | |
| OKLCH | oklch(0.6652 0.2842 339.48) | color: oklch(0.6652 0.2842 339.48) | |
| Lab | lab(56.74 88.98 -36.72) | color: lab(56.74 88.98 -36.72) | |
| LCH | lch(56.74 96.26 337.58) | color: lch(56.74 96.26 337.58) |
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)
#94929D — rgb(148, 146, 157)
Deuteranopia (Green-blind)
#A2B393 — rgb(162, 179, 147)
Tritanopia (Blue-blind)
#ED7A73 — rgb(237, 122, 115)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 94%, 52%);
text
color: hsl(312, 94%, 52%);
border
border: 2px solid hsl(312, 94%, 52%);
gradient light
background: linear-gradient(to right, hsl(312, 94%, 72%), hsl(312, 94%, 52%));
gradient dark
background: linear-gradient(to right, hsl(312, 94%, 52%), hsl(312, 94%, 32%))
hex
background-color: #F812CA;
tailwind
bg-[hsl(312,94%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 94%, 52%, 0.4);
css variable
--color-primary: hsl(312, 94%, 52%);
Related Colors
Use Cases for Vivid Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 94%, 52%)?
HEX: #F812CA | RGB: rgb(248, 18, 202) | CMYK: 0%, 93%, 19%, 3% | HSV: 312°, 93%, 97%. Copy any format from the conversion table above.
What colors go well with #F812CA?
The complementary color is HSL(132, 94%, 52%). 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, 94%, 52%) in CSS?
As HSL: color: hsl(312, 94%, 52%); — As HEX: color: #F812CA; — As RGB: color: rgb(248, 18, 202); — Tailwind CSS: bg-[hsl(312,94%,52%)] — CSS variable: --color-primary: hsl(312, 94%, 52%);