HSL(303, 24%, 20%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(303,24%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(303, 24%, 20%) | color: hsl(303, 24%, 20%) | |
| HEX | #3F273E | color: #3F273E | |
| RGB | rgb(63, 39, 62) | color: rgb(63, 39, 62) | |
| CMYK | cmyk(0%, 38%, 2%, 75%) | — | |
| HSV | hsv(303, 38%, 25%) | — | |
| HWB | hwb(303 16% 75%) | color: hwb(303 16% 75%) | |
| OKLCH | oklch(0.3119 0.0518 328.16) | color: oklch(0.3119 0.0518 328.16) | |
| Lab | lab(19.46 15.78 -10.08) | color: lab(19.46 15.78 -10.08) | |
| LCH | lch(19.46 18.72 327.43) | color: lch(19.46 18.72 327.43) |
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)
#353438 — rgb(53, 52, 56)
Deuteranopia (Green-blind)
#363837 — rgb(54, 56, 55)
Tritanopia (Blue-blind)
#3E3433 — rgb(62, 52, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(303, 24%, 20%);
text
color: hsl(303, 24%, 20%);
border
border: 2px solid hsl(303, 24%, 20%);
gradient light
background: linear-gradient(to right, hsl(303, 24%, 40%), hsl(303, 24%, 20%));
gradient dark
background: linear-gradient(to right, hsl(303, 24%, 20%), hsl(303, 24%, 0%))
hex
background-color: #3F273E;
tailwind
bg-[hsl(303,24%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(303, 24%, 20%, 0.4);
css variable
--color-primary: hsl(303, 24%, 20%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(303, 24%, 20%)?
HEX: #3F273E | RGB: rgb(63, 39, 62) | CMYK: 0%, 38%, 2%, 75% | HSV: 303°, 38%, 25%. Copy any format from the conversion table above.
What colors go well with #3F273E?
The complementary color is HSL(123, 24%, 20%). 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, 24%, 20%) in CSS?
As HSL: color: hsl(303, 24%, 20%); — As HEX: color: #3F273E; — As RGB: color: rgb(63, 39, 62); — Tailwind CSS: bg-[hsl(303,24%,20%)] — CSS variable: --color-primary: hsl(303, 24%, 20%);