Skip to main content

bg-gray-700

Tailwind Gray 700

#374151·Gray family·Shade 700

Color Values

HEX
#374151
RGB
rgb(55, 65, 81)
HSL
hsl(217, 19%, 27%)
OKLCH
oklch(0.373 0.031 260)
CMYK
cmyk(32%, 20%, 0%, 68%)
CSS Variable
var(--color-gray-700)
Tailwind Class
bg-gray-700

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

10.31:1

AAA

On Black

2.04:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-gray-700

Text

text-gray-700

Border

border-gray-700

Ring

ring-gray-700

Outline

outline-gray-700

Fill

fill-gray-700

Stroke

stroke-gray-700

From (gradient)

from-gray-700

Via (gradient)

via-gray-700

To (gradient)

to-gray-700

Placeholder

placeholder-gray-700

Caret

caret-gray-700

Accent

accent-gray-700

Decoration

decoration-gray-700

Shadow Color

shadow-gray-700

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'gray-700': '#374151', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #374151;

/* RGB */
background-color: rgb(55, 65, 81);

/* HSL */
background-color: hsl(217, 19%, 27%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.373 0.031 260);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-gray-700);

/* Gradient example */
background: linear-gradient(135deg, #f9fafb 0%, #1f2937 100%);

OKLCH — Modern Color Space

Lightness (L)

0.373

37% perceived brightness

Chroma (C)

0.031

Color intensity / saturation

Hue (H)

260°

Angle on perceptual hue wheel

oklch(0.373 0.031 260)

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

Dark accent & pressed state

Shade 700 of the Gray palette

Recommended Uses

  • Pressed/active button states
  • Text links on white
  • Dark-mode primary buttons
  • Table headers
  • Strong UI accents

Avoid

Text on black — contrast is too low for dark mode text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #374151

Frequently Asked Questions

What is the hex code for Tailwind Gray 700?
Tailwind Gray 700 has the hex code #374151. Its RGB value is rgb(55, 65, 81) and its HSL value is hsl(217, 19%, 27%).
What Tailwind utility classes use Gray 700?
Use bg-gray-700 for backgrounds, text-gray-700 for text color, border-gray-700 for borders, and ring-gray-700 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-700) is available natively.
Is Tailwind Gray 700 WCAG accessible?
Tailwind Gray 700 achieves a 10.31:1 contrast ratio on white (AAA) and 2.04:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Gray 700?
Tailwind Gray 700 in OKLCH is oklch(0.373 0.031 260) — lightness 0.373, chroma 0.031, hue 260°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Gray 700 used for?
At shade 700, Tailwind Gray 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.