HSL(303, 42%, 58%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(303,42%,58%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(303, 42%, 58%) | color: hsl(303, 42%, 58%) | |
| HEX | #C167BC | color: #C167BC | |
| RGB | rgb(193, 103, 188) | color: rgb(193, 103, 188) | |
| CMYK | cmyk(0%, 47%, 3%, 24%) | — | |
| HSV | hsv(303, 47%, 76%) | — | |
| HWB | hwb(303 40% 24%) | color: hwb(303 40% 24%) | |
| OKLCH | oklch(0.6468 0.1566 329.27) | color: oklch(0.6468 0.1566 329.27) | |
| Lab | lab(56.75 47.9 -29.31) | color: lab(56.75 47.9 -29.31) | |
| LCH | lch(56.75 56.16 328.54) | color: lch(56.75 56.16 328.54) |
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)
#9A99A7 — rgb(154, 153, 167)
Deuteranopia (Green-blind)
#9FA6A3 — rgb(159, 166, 163)
Tritanopia (Blue-blind)
#BD9794 — rgb(189, 151, 148)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(303, 42%, 58%);
text
color: hsl(303, 42%, 58%);
border
border: 2px solid hsl(303, 42%, 58%);
gradient light
background: linear-gradient(to right, hsl(303, 42%, 78%), hsl(303, 42%, 58%));
gradient dark
background: linear-gradient(to right, hsl(303, 42%, 58%), hsl(303, 42%, 38%))
hex
background-color: #C167BC;
tailwind
bg-[hsl(303,42%,58%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(303, 42%, 58%, 0.4);
css variable
--color-primary: hsl(303, 42%, 58%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(303, 42%, 58%)?
HEX: #C167BC | RGB: rgb(193, 103, 188) | CMYK: 0%, 47%, 3%, 24% | HSV: 303°, 47%, 76%. Copy any format from the conversion table above.
What colors go well with #C167BC?
The complementary color is HSL(123, 42%, 58%). For a triadic harmony, use hues 303°, 63°, and 183°. For analogous combinations, try hues 273° and 333°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(303, 42%, 58%) in CSS?
As HSL: color: hsl(303, 42%, 58%); — As HEX: color: #C167BC; — As RGB: color: rgb(193, 103, 188); — Tailwind CSS: bg-[hsl(303,42%,58%)] — CSS variable: --color-primary: hsl(303, 42%, 58%);