HSL(293, 30%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(293,30%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(293, 30%, 18%) | color: hsl(293, 30%, 18%) | |
| HEX | #38203C | color: #38203C | |
| RGB | rgb(56, 32, 60) | color: rgb(56, 32, 60) | |
| CMYK | cmyk(7%, 47%, 0%, 76%) | — | |
| HSV | hsv(291, 47%, 24%) | — | |
| HWB | hwb(291 13% 76%) | color: hwb(291 13% 76%) | |
| OKLCH | oklch(0.2872 0.059 321.7) | color: oklch(0.2872 0.059 321.7) | |
| Lab | lab(16.5 17.26 -13.32) | color: lab(16.5 17.26 -13.32) | |
| LCH | lch(16.5 21.8 322.34) | color: lch(16.5 21.8 322.34) |
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)
#2E2D35 — rgb(46, 45, 53)
Deuteranopia (Green-blind)
#2F3134 — rgb(47, 49, 52)
Tritanopia (Blue-blind)
#37302F — rgb(55, 48, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(293, 30%, 18%);
text
color: hsl(293, 30%, 18%);
border
border: 2px solid hsl(293, 30%, 18%);
gradient light
background: linear-gradient(to right, hsl(293, 30%, 38%), hsl(293, 30%, 18%));
gradient dark
background: linear-gradient(to right, hsl(293, 30%, 18%), hsl(293, 30%, 0%))
hex
background-color: #38203C;
tailwind
bg-[hsl(293,30%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(293, 30%, 18%, 0.4);
css variable
--color-primary: hsl(293, 30%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(293, 30%, 18%)?
HEX: #38203C | RGB: rgb(56, 32, 60) | CMYK: 7%, 47%, 0%, 76% | HSV: 291°, 47%, 24%. Copy any format from the conversion table above.
What colors go well with #38203C?
The complementary color is HSL(113, 30%, 18%). For a triadic harmony, use hues 293°, 53°, and 173°. For analogous combinations, try hues 263° and 323°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(293, 30%, 18%) in CSS?
As HSL: color: hsl(293, 30%, 18%); — As HEX: color: #38203C; — As RGB: color: rgb(56, 32, 60); — Tailwind CSS: bg-[hsl(293,30%,18%)] — CSS variable: --color-primary: hsl(293, 30%, 18%);