HSL(12, 17%, 21%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(12,17%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(12, 17%, 21%) | color: hsl(12, 17%, 21%) | |
| HEX | #3F302C | color: #3F302C | |
| RGB | rgb(63, 48, 44) | color: rgb(63, 48, 44) | |
| CMYK | cmyk(0%, 24%, 30%, 75%) | — | |
| HSV | hsv(13, 30%, 25%) | — | |
| HWB | hwb(13 18% 75%) | color: hwb(13 18% 75%) | |
| OKLCH | oklch(0.3248 0.0231 35.39) | color: oklch(0.3248 0.0231 35.39) | |
| Lab | lab(21.4 6.09 5.16) | color: lab(21.4 6.09 5.16) | |
| LCH | lch(21.4 7.98 40.27) | color: lch(21.4 7.98 40.27) |
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)
#39382D — rgb(57, 56, 45)
Deuteranopia (Green-blind)
#393B2D — rgb(57, 59, 45)
Tritanopia (Blue-blind)
#3E2E2E — rgb(62, 46, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(12, 17%, 21%);
text
color: hsl(12, 17%, 21%);
border
border: 2px solid hsl(12, 17%, 21%);
gradient light
background: linear-gradient(to right, hsl(12, 17%, 41%), hsl(12, 17%, 21%));
gradient dark
background: linear-gradient(to right, hsl(12, 17%, 21%), hsl(12, 17%, 1%))
hex
background-color: #3F302C;
tailwind
bg-[hsl(12,17%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(12, 17%, 21%, 0.4);
css variable
--color-primary: hsl(12, 17%, 21%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(12, 17%, 21%)?
HEX: #3F302C | RGB: rgb(63, 48, 44) | CMYK: 0%, 24%, 30%, 75% | HSV: 13°, 30%, 25%. Copy any format from the conversion table above.
What colors go well with #3F302C?
The complementary color is HSL(192, 17%, 21%). 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, 17%, 21%) in CSS?
As HSL: color: hsl(12, 17%, 21%); — As HEX: color: #3F302C; — As RGB: color: rgb(63, 48, 44); — Tailwind CSS: bg-[hsl(12,17%,21%)] — CSS variable: --color-primary: hsl(12, 17%, 21%);