Skip to main content

bg-violet-700

Tailwind Violet 700

#6D28D9·Violet family·Shade 700

Color Values

HEX
#6D28D9
RGB
rgb(109, 40, 217)
HSL
hsl(263, 70%, 50%)
OKLCH
oklch(0.491 0.241 293)
CMYK
cmyk(50%, 82%, 0%, 15%)
CSS Variable
var(--color-violet-700)
Tailwind Class
bg-violet-700

Accessibility Score

60/100

Good

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

On White

7.1:1

AAA

On Black

2.96:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-violet-700

Text

text-violet-700

Border

border-violet-700

Ring

ring-violet-700

Outline

outline-violet-700

Fill

fill-violet-700

Stroke

stroke-violet-700

From (gradient)

from-violet-700

Via (gradient)

via-violet-700

To (gradient)

to-violet-700

Placeholder

placeholder-violet-700

Caret

caret-violet-700

Accent

accent-violet-700

Decoration

decoration-violet-700

Shadow Color

shadow-violet-700

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

/* Hex */
background-color: #6D28D9;

/* RGB */
background-color: rgb(109, 40, 217);

/* HSL */
background-color: hsl(263, 70%, 50%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.491 0.241 293);

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

/* Gradient example */
background: linear-gradient(135deg, #f5f3ff 0%, #5b21b6 100%);

OKLCH — Modern Color Space

Lightness (L)

0.491

49% perceived brightness

Chroma (C)

0.241

Color intensity / saturation

Hue (H)

293°

Angle on perceptual hue wheel

oklch(0.491 0.241 293)

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 Violet 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 — #6D28D9

Frequently Asked Questions

What is the hex code for Tailwind Violet 700?
Tailwind Violet 700 has the hex code #6D28D9. Its RGB value is rgb(109, 40, 217) and its HSL value is hsl(263, 70%, 50%).
What Tailwind utility classes use Violet 700?
Use bg-violet-700 for backgrounds, text-violet-700 for text color, border-violet-700 for borders, and ring-violet-700 for focus rings. In Tailwind v4 the CSS variable var(--color-violet-700) is available natively.
Is Tailwind Violet 700 WCAG accessible?
Tailwind Violet 700 achieves a 7.1:1 contrast ratio on white (AAA) and 2.96:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Violet 700?
Tailwind Violet 700 in OKLCH is oklch(0.491 0.241 293) — lightness 0.491, chroma 0.241, hue 293°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Violet 700 used for?
At shade 700, Tailwind Violet 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.