Color Values
- HEX
- #6B7280
- RGB
- rgb(107, 114, 128)
- HSL
- hsl(220, 9%, 46%)
- OKLCH
- oklch(0.551 0.023 264)
- CMYK
- cmyk(16%, 11%, 0%, 50%)
- CSS Variable
- var(--color-gray-500)
- Tailwind Class
- bg-gray-500
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
4.83:1
On Black
4.34:1
Tailwind Usage — All Utilities
Background
bg-gray-500Text
text-gray-500Border
border-gray-500Ring
ring-gray-500Outline
outline-gray-500Fill
fill-gray-500Stroke
stroke-gray-500From (gradient)
from-gray-500Via (gradient)
via-gray-500To (gradient)
to-gray-500Placeholder
placeholder-gray-500Caret
caret-gray-500Accent
accent-gray-500Decoration
decoration-gray-500Shadow Color
shadow-gray-500Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'gray-500': '#6b7280',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #6B7280;
/* RGB */
background-color: rgb(107, 114, 128);
/* HSL */
background-color: hsl(220, 9%, 46%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.551 0.023 264);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-gray-500);
/* Gradient example */
background: linear-gradient(135deg, #f9fafb 0%, #4b5563 100%);OKLCH — Modern Color Space
Lightness (L)
0.551
55% perceived brightness
Chroma (C)
0.023
Color intensity / saturation
Hue (H)
264°
Angle on perceptual hue wheel
oklch(0.551 0.023 264)OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.
Design Recommendations
Primary brand color
Shade 500 of the Gray palette
Recommended Uses
- ✓CTA buttons
- ✓Active navigation links
- ✓Primary brand accents
- ✓Interactive element fills
- ✓Highlighted badges
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #6B7280
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Gray 500
Nearest Tailwind equivalent — #6B7280
Frequently Asked Questions
- What is the hex code for Tailwind Gray 500?
- Tailwind Gray 500 has the hex code #6B7280. Its RGB value is rgb(107, 114, 128) and its HSL value is hsl(220, 9%, 46%).
- What Tailwind utility classes use Gray 500?
- Use bg-gray-500 for backgrounds, text-gray-500 for text color, border-gray-500 for borders, and ring-gray-500 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-500) is available natively.
- Is Tailwind Gray 500 WCAG accessible?
- Tailwind Gray 500 achieves a 4.83:1 contrast ratio on white (AA) and 4.34:1 on black (AA Large). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Gray 500?
- Tailwind Gray 500 in OKLCH is oklch(0.551 0.023 264) — lightness 0.551, chroma 0.023, hue 264°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Gray 500 used for?
- At shade 500, Tailwind Gray 500 is best described as "Primary brand color". Recommended uses: CTA buttons, Active navigation links, Primary brand accents.