HSL(45, 70%, 9%)
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(45,70%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(45, 70%, 9%) | color: hsl(45, 70%, 9%) | |
| HEX | #271F07 | color: #271F07 | |
| RGB | rgb(39, 31, 7) | color: rgb(39, 31, 7) | |
| CMYK | cmyk(0%, 21%, 82%, 85%) | — | |
| HSV | hsv(45, 82%, 15%) | — | |
| HWB | hwb(45 3% 85%) | color: hwb(45 3% 85%) | |
| OKLCH | oklch(0.2427 0.0399 90.82) | color: oklch(0.2427 0.0399 90.82) | |
| Lab | lab(12.13 0.27 15.14) | color: lab(12.13 0.27 15.14) | |
| LCH | lch(12.13 15.14 88.98) | color: lch(12.13 15.14 88.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)
#24230D — rgb(36, 35, 13)
Deuteranopia (Green-blind)
#24250E — rgb(36, 37, 14)
Tritanopia (Blue-blind)
#271112 — rgb(39, 17, 18)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(45, 70%, 9%);
text
color: hsl(45, 70%, 9%);
border
border: 2px solid hsl(45, 70%, 9%);
gradient light
background: linear-gradient(to right, hsl(45, 70%, 29%), hsl(45, 70%, 9%));
gradient dark
background: linear-gradient(to right, hsl(45, 70%, 9%), hsl(45, 70%, 0%))
hex
background-color: #271F07;
tailwind
bg-[hsl(45,70%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(45, 70%, 9%, 0.4);
css variable
--color-primary: hsl(45, 70%, 9%);
Related Colors
Use Cases for Very Dark Yellow
Frequently Asked Questions
What are all the color codes for HSL(45, 70%, 9%)?
HEX: #271F07 | RGB: rgb(39, 31, 7) | CMYK: 0%, 21%, 82%, 85% | HSV: 45°, 82%, 15%. Copy any format from the conversion table above.
What colors go well with #271F07?
The complementary color is HSL(225, 70%, 9%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(45, 70%, 9%) in CSS?
As HSL: color: hsl(45, 70%, 9%); — As HEX: color: #271F07; — As RGB: color: rgb(39, 31, 7); — Tailwind CSS: bg-[hsl(45,70%,9%)] — CSS variable: --color-primary: hsl(45, 70%, 9%);