Skip to main content

bg-gray-200

Tailwind Gray 200

#E5E7EB·Gray family·Shade 200

Color Values

HEX
#E5E7EB
RGB
rgb(229, 231, 235)
HSL
hsl(220, 13%, 91%)
OKLCH
oklch(0.928 0.006 265)
CMYK
cmyk(3%, 2%, 0%, 8%)
CSS Variable
var(--color-gray-200)
Tailwind Class
bg-gray-200

Accessibility Score

60/100

Good

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

On White

1.24:1

Fail

On Black

16.96:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-gray-200

Text

text-gray-200

Border

border-gray-200

Ring

ring-gray-200

Outline

outline-gray-200

Fill

fill-gray-200

Stroke

stroke-gray-200

From (gradient)

from-gray-200

Via (gradient)

via-gray-200

To (gradient)

to-gray-200

Placeholder

placeholder-gray-200

Caret

caret-gray-200

Accent

accent-gray-200

Decoration

decoration-gray-200

Shadow Color

shadow-gray-200

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(229, 231, 235);

/* HSL */
background-color: hsl(220, 13%, 91%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.928 0.006 265);

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

/* Gradient example */
background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);

OKLCH — Modern Color Space

Lightness (L)

0.928

93% perceived brightness

Chroma (C)

0.006

Color intensity / saturation

Hue (H)

265°

Angle on perceptual hue wheel

oklch(0.928 0.006 265)

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

Soft accent & border

Shade 200 of the Gray palette

Recommended Uses

  • Focus ring outlines
  • Divider lines
  • Soft tag borders
  • Progress track fills
  • Decorative underlines

Avoid

Small body text — borderline contrast, fails WCAG AA at small sizes.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #E5E7EB

Frequently Asked Questions

What is the hex code for Tailwind Gray 200?
Tailwind Gray 200 has the hex code #E5E7EB. Its RGB value is rgb(229, 231, 235) and its HSL value is hsl(220, 13%, 91%).
What Tailwind utility classes use Gray 200?
Use bg-gray-200 for backgrounds, text-gray-200 for text color, border-gray-200 for borders, and ring-gray-200 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-200) is available natively.
Is Tailwind Gray 200 WCAG accessible?
Tailwind Gray 200 achieves a 1.24:1 contrast ratio on white (Fail) and 16.96:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Gray 200?
Tailwind Gray 200 in OKLCH is oklch(0.928 0.006 265) — lightness 0.928, chroma 0.006, hue 265°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Gray 200 used for?
At shade 200, Tailwind Gray 200 is best described as "Soft accent & border". Recommended uses: Focus ring outlines, Divider lines, Soft tag borders.