HSL(220, 5%, 16%)
Grayish Black — Black color
Adjust Color
Color Information
Color Name
Grayish Black
Color Family
Black
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(220,5%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 5%, 16%) | color: hsl(220, 5%, 16%) | |
| HEX | #27282B | color: #27282B | |
| RGB | rgb(39, 40, 43) | color: rgb(39, 40, 43) | |
| CMYK | cmyk(9%, 7%, 0%, 83%) | — | |
| HSV | hsv(225, 9%, 17%) | — | |
| HWB | hwb(225 15% 83%) | color: hwb(225 15% 83%) | |
| OKLCH | oklch(0.277 0.0057 271.21) | color: oklch(0.277 0.0057 271.21) | |
| Lab | lab(16.12 0.3 -2.12) | color: lab(16.12 0.3 -2.12) | |
| LCH | lch(16.12 2.14 278.05) | color: lch(16.12 2.14 278.05) |
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)
#27272A — rgb(39, 39, 42)
Deuteranopia (Green-blind)
#27272A — rgb(39, 39, 42)
Tritanopia (Blue-blind)
#272A2A — rgb(39, 42, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 5%, 16%);
text
color: hsl(220, 5%, 16%);
border
border: 2px solid hsl(220, 5%, 16%);
gradient light
background: linear-gradient(to right, hsl(220, 5%, 36%), hsl(220, 5%, 16%));
gradient dark
background: linear-gradient(to right, hsl(220, 5%, 16%), hsl(220, 5%, 0%))
hex
background-color: #27282B;
tailwind
bg-[hsl(220,5%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 5%, 16%, 0.4);
css variable
--color-primary: hsl(220, 5%, 16%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(220, 5%, 16%)?
HEX: #27282B | RGB: rgb(39, 40, 43) | CMYK: 9%, 7%, 0%, 83% | HSV: 225°, 9%, 17%. Copy any format from the conversion table above.
What colors go well with #27282B?
The complementary color is HSL(40, 5%, 16%). For a triadic harmony, use hues 220°, 340°, and 100°. For analogous combinations, try hues 190° and 250°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(220, 5%, 16%) in CSS?
As HSL: color: hsl(220, 5%, 16%); — As HEX: color: #27282B; — As RGB: color: rgb(39, 40, 43); — Tailwind CSS: bg-[hsl(220,5%,16%)] — CSS variable: --color-primary: hsl(220, 5%, 16%);