HSL(12, 18%, 22%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(12,18%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(12, 18%, 22%) | color: hsl(12, 18%, 22%) | |
| HEX | #42322E | color: #42322E | |
| RGB | rgb(66, 50, 46) | color: rgb(66, 50, 46) | |
| CMYK | cmyk(0%, 24%, 30%, 74%) | — | |
| HSV | hsv(12, 30%, 26%) | — | |
| HWB | hwb(12 18% 74%) | color: hwb(12 18% 74%) | |
| OKLCH | oklch(0.3338 0.0244 34.41) | color: oklch(0.3338 0.0244 34.41) | |
| Lab | lab(22.43 6.51 5.31) | color: lab(22.43 6.51 5.31) | |
| LCH | lch(22.43 8.4 39.2) | color: lch(22.43 8.4 39.2) |
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)
#3B3B2F — rgb(59, 59, 47)
Deuteranopia (Green-blind)
#3C3D2F — rgb(60, 61, 47)
Tritanopia (Blue-blind)
#413030 — rgb(65, 48, 48)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(12, 18%, 22%);
text
color: hsl(12, 18%, 22%);
border
border: 2px solid hsl(12, 18%, 22%);
gradient light
background: linear-gradient(to right, hsl(12, 18%, 42%), hsl(12, 18%, 22%));
gradient dark
background: linear-gradient(to right, hsl(12, 18%, 22%), hsl(12, 18%, 2%))
hex
background-color: #42322E;
tailwind
bg-[hsl(12,18%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(12, 18%, 22%, 0.4);
css variable
--color-primary: hsl(12, 18%, 22%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(12, 18%, 22%)?
HEX: #42322E | RGB: rgb(66, 50, 46) | CMYK: 0%, 24%, 30%, 74% | HSV: 12°, 30%, 26%. Copy any format from the conversion table above.
What colors go well with #42322E?
The complementary color is HSL(192, 18%, 22%). For a triadic harmony, use hues 12°, 132°, and 252°. For analogous combinations, try hues 342° and 42°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(12, 18%, 22%) in CSS?
As HSL: color: hsl(12, 18%, 22%); — As HEX: color: #42322E; — As RGB: color: rgb(66, 50, 46); — Tailwind CSS: bg-[hsl(12,18%,22%)] — CSS variable: --color-primary: hsl(12, 18%, 22%);