HSL(46, 52%, 12%)
Very Dark Yellow — Yellow color
Adjust Color
Color Information
Color Name
Very Dark Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(46,52%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(46, 52%, 12%) | color: hsl(46, 52%, 12%) | |
| HEX | #2F270F | color: #2F270F | |
| RGB | rgb(47, 39, 15) | color: rgb(47, 39, 15) | |
| CMYK | cmyk(0%, 17%, 68%, 82%) | — | |
| HSV | hsv(45, 68%, 18%) | — | |
| HWB | hwb(45 6% 82%) | color: hwb(45 6% 82%) | |
| OKLCH | oklch(0.2755 0.0399 91.21) | color: oklch(0.2755 0.0399 91.21) | |
| Lab | lab(15.95 -0.05 16.77) | color: lab(15.95 -0.05 16.77) | |
| LCH | lch(15.95 16.77 90.17) | color: lch(15.95 16.77 90.17) |
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)
#2C2B15 — rgb(44, 43, 21)
Deuteranopia (Green-blind)
#2C2D16 — rgb(44, 45, 22)
Tritanopia (Blue-blind)
#2F191A — rgb(47, 25, 26)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(46, 52%, 12%);
text
color: hsl(46, 52%, 12%);
border
border: 2px solid hsl(46, 52%, 12%);
gradient light
background: linear-gradient(to right, hsl(46, 52%, 32%), hsl(46, 52%, 12%));
gradient dark
background: linear-gradient(to right, hsl(46, 52%, 12%), hsl(46, 52%, 0%))
hex
background-color: #2F270F;
tailwind
bg-[hsl(46,52%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(46, 52%, 12%, 0.4);
css variable
--color-primary: hsl(46, 52%, 12%);
Related Colors
Use Cases for Very Dark Yellow
Frequently Asked Questions
What are all the color codes for HSL(46, 52%, 12%)?
HEX: #2F270F | RGB: rgb(47, 39, 15) | CMYK: 0%, 17%, 68%, 82% | HSV: 45°, 68%, 18%. Copy any format from the conversion table above.
What colors go well with #2F270F?
The complementary color is HSL(226, 52%, 12%). For a triadic harmony, use hues 46°, 166°, and 286°. For analogous combinations, try hues 16° and 76°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(46, 52%, 12%) in CSS?
As HSL: color: hsl(46, 52%, 12%); — As HEX: color: #2F270F; — As RGB: color: rgb(47, 39, 15); — Tailwind CSS: bg-[hsl(46,52%,12%)] — CSS variable: --color-primary: hsl(46, 52%, 12%);