HSL(52, 19%, 16%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(52,19%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 19%, 16%) | color: hsl(52, 19%, 16%) | |
| HEX | #312E21 | color: #312E21 | |
| RGB | rgb(49, 46, 33) | color: rgb(49, 46, 33) | |
| CMYK | cmyk(0%, 6%, 33%, 81%) | — | |
| HSV | hsv(49, 33%, 19%) | — | |
| HWB | hwb(49 13% 81%) | color: hwb(49 13% 81%) | |
| OKLCH | oklch(0.3002 0.0226 96.62) | color: oklch(0.3002 0.0226 96.62) | |
| Lab | lab(18.87 -1.25 8.89) | color: lab(18.87 -1.25 8.89) | |
| LCH | lch(18.87 8.98 98) | color: lch(18.87 8.98 98) |
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)
#303024 — rgb(48, 48, 36)
Deuteranopia (Green-blind)
#303025 — rgb(48, 48, 37)
Tritanopia (Blue-blind)
#312727 — rgb(49, 39, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 19%, 16%);
text
color: hsl(52, 19%, 16%);
border
border: 2px solid hsl(52, 19%, 16%);
gradient light
background: linear-gradient(to right, hsl(52, 19%, 36%), hsl(52, 19%, 16%));
gradient dark
background: linear-gradient(to right, hsl(52, 19%, 16%), hsl(52, 19%, 0%))
hex
background-color: #312E21;
tailwind
bg-[hsl(52,19%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 19%, 16%, 0.4);
css variable
--color-primary: hsl(52, 19%, 16%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 19%, 16%)?
HEX: #312E21 | RGB: rgb(49, 46, 33) | CMYK: 0%, 6%, 33%, 81% | HSV: 49°, 33%, 19%. Copy any format from the conversion table above.
What colors go well with #312E21?
The complementary color is HSL(232, 19%, 16%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(52, 19%, 16%) in CSS?
As HSL: color: hsl(52, 19%, 16%); — As HEX: color: #312E21; — As RGB: color: rgb(49, 46, 33); — Tailwind CSS: bg-[hsl(52,19%,16%)] — CSS variable: --color-primary: hsl(52, 19%, 16%);