HSL(52, 27%, 15%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,27%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 27%, 15%) | color: hsl(52, 27%, 15%) | |
| HEX | #312E1C | color: #312E1C | |
| RGB | rgb(49, 46, 28) | color: rgb(49, 46, 28) | |
| CMYK | cmyk(0%, 6%, 43%, 81%) | — | |
| HSV | hsv(51, 43%, 19%) | — | |
| HWB | hwb(51 11% 81%) | color: hwb(51 11% 81%) | |
| OKLCH | oklch(0.2989 0.0304 99.89) | color: oklch(0.2989 0.0304 99.89) | |
| Lab | lab(18.76 -2.07 12.11) | color: lab(18.76 -2.07 12.11) | |
| LCH | lch(18.76 12.29 99.7) | color: lch(18.76 12.29 99.7) |
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)
#303020 — rgb(48, 48, 32)
Deuteranopia (Green-blind)
#303021 — rgb(48, 48, 33)
Tritanopia (Blue-blind)
#312425 — rgb(49, 36, 37)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 27%, 15%);
text
color: hsl(52, 27%, 15%);
border
border: 2px solid hsl(52, 27%, 15%);
gradient light
background: linear-gradient(to right, hsl(52, 27%, 35%), hsl(52, 27%, 15%));
gradient dark
background: linear-gradient(to right, hsl(52, 27%, 15%), hsl(52, 27%, 0%))
hex
background-color: #312E1C;
tailwind
bg-[hsl(52,27%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 27%, 15%, 0.4);
css variable
--color-primary: hsl(52, 27%, 15%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 27%, 15%)?
HEX: #312E1C | RGB: rgb(49, 46, 28) | CMYK: 0%, 6%, 43%, 81% | HSV: 51°, 43%, 19%. Copy any format from the conversion table above.
What colors go well with #312E1C?
The complementary color is HSL(232, 27%, 15%). 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, 27%, 15%) in CSS?
As HSL: color: hsl(52, 27%, 15%); — As HEX: color: #312E1C; — As RGB: color: rgb(49, 46, 28); — Tailwind CSS: bg-[hsl(52,27%,15%)] — CSS variable: --color-primary: hsl(52, 27%, 15%);