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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
6.98:1
On Black
3.01:1
Tailwind Usage — All Utilities
Background
bg-purple-700Text
text-purple-700Border
border-purple-700Ring
ring-purple-700Outline
outline-purple-700Fill
fill-purple-700Stroke
stroke-purple-700From (gradient)
from-purple-700Via (gradient)
via-purple-700To (gradient)
to-purple-700Placeholder
placeholder-purple-700Caret
caret-purple-700Accent
accent-purple-700Decoration
decoration-purple-700Shadow Color
shadow-purple-700Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #7E22CE
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Purple 700
Nearest Tailwind equivalent — #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.