to-pink-900 Tailwind CSS Class
Use to-pink-900 to set the gradient end color to #861043 in Tailwind CSS. This page gives you the generated CSS output, a copy-paste example, and an interactive demo for search-friendly utility lookups.
to-pink-900 maps to gradient-end-color: #861043. It belongs to the Colors category and was generated from Tailwind CSS v4.1.14 reference data.
Interactive Demo
Toggle the utility on and off, switch preview surfaces, and adjust the demo content to see how this class behaves.
Tailwind utility preview
This preview simulates the effect of to-pink-900 using structured data generated from your Tailwind reference snapshot.
Visual Comparison
to-pink-900 updates the element's gradient-end-color to #861043, so the visual emphasis changes without shifting layout or spacing.
Tailwind utility preview
Tailwind utility preview
Variants & Breakpoints
Use the base utility directly, then layer state or responsive variants when the component needs more specific behavior.
| Context | Class syntax | Why use it | Preview |
|---|---|---|---|
| Base | to-pink-900 | Apply to-pink-900 directly to the element. | Default application |
| Hover | hover:to-pink-900 | Use this when the visual change should appear on pointer hover. | Pointer state |
| Focus | focus:to-pink-900 | Useful when the class should react to focus or keyboard navigation. | Focus state |
| Dark | dark:to-pink-900 | Apply the same utility inside a dark color scheme. | Dark surface |
Utility Family Comparison
Compare nearby options and related companions so you can choose the right intensity before reaching for trial-and-error tweaks.
Sample text
Sample text
Sample text
Sample text
Sample text
When to use this class
Use this class when you want a fast, predictable gradient-end-color decision inside colors patterns such as buttons, badges, alerts, or surface accents.
Watch out for
Watch contrast and state stacking. A color utility can look correct in isolation but lose readability once text, border, hover, and dark mode states combine.
Class Reference
| Field | Value |
|---|---|
| Utility class | to-pink-900 |
| Category | Colors |
| CSS output | gradient-end-color: #861043 |
| Source page | Colors Reference |
| Static slug | to-pink-900 |
Example Snippet
Use this code snippet as a starting point, then swap the markup around it to fit your component or layout.
<div class="bg-gradient-to-r from-slate-900 to-pink-900 rounded-lg px-6 py-4 text-white">Gradient preview</div>Related Utility Pages
Browse More
Return to the Colors Reference page for broader browsing, or open the Tailwind CSS Cheat Sheet to move across categories quickly.