Skip to main content

bg-purple-700

Tailwind Purple 700

#7E22CE·Purple family·Shade 700

Color Values

HEX
#7E22CE
RGB
rgb(126, 34, 206)
HSL
hsl(272, 72%, 47%)
OKLCH
oklch(0.496 0.237 302)
CMYK
cmyk(39%, 83%, 0%, 19%)
CSS Variable
var(--color-purple-700)
Tailwind Class
bg-purple-700

Accessibility Score

60/100

Good

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

On White

6.98:1

AA

On Black

3.01:1

AA Large
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-700

Text

text-purple-700

Border

border-purple-700

Ring

ring-purple-700

Outline

outline-purple-700

Fill

fill-purple-700

Stroke

stroke-purple-700

From (gradient)

from-purple-700

Via (gradient)

via-purple-700

To (gradient)

to-purple-700

Placeholder

placeholder-purple-700

Caret

caret-purple-700

Accent

accent-purple-700

Decoration

decoration-purple-700

Shadow Color

shadow-purple-700

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

/* Hex */
background-color: #7E22CE;

/* RGB */
background-color: rgb(126, 34, 206);

/* HSL */
background-color: hsl(272, 72%, 47%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.496 0.237 302);

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

/* Gradient example */
background: linear-gradient(135deg, #faf5ff 0%, #6b21a8 100%);

OKLCH — Modern Color Space

Lightness (L)

0.496

50% perceived brightness

Chroma (C)

0.237

Color intensity / saturation

Hue (H)

302°

Angle on perceptual hue wheel

oklch(0.496 0.237 302)

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 Purple 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 — #7E22CE

Frequently Asked Questions

What is the hex code for Tailwind Purple 700?
Tailwind Purple 700 has the hex code #7E22CE. Its RGB value is rgb(126, 34, 206) and its HSL value is hsl(272, 72%, 47%).
What Tailwind utility classes use Purple 700?
Use bg-purple-700 for backgrounds, text-purple-700 for text color, border-purple-700 for borders, and ring-purple-700 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-700) is available natively.
Is Tailwind Purple 700 WCAG accessible?
Tailwind Purple 700 achieves a 6.98:1 contrast ratio on white (AA) and 3.01:1 on black (AA Large). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Purple 700?
Tailwind Purple 700 in OKLCH is oklch(0.496 0.237 302) — lightness 0.496, chroma 0.237, hue 302°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Purple 700 used for?
At shade 700, Tailwind Purple 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.