Skip to main content

bg-violet-600

Tailwind Violet 600

#7C3AED·Violet family·Shade 600

Color Values

HEX
#7C3AED
RGB
rgb(124, 58, 237)
HSL
hsl(262, 83%, 58%)
OKLCH
oklch(0.541 0.247 293)
CMYK
cmyk(48%, 76%, 0%, 7%)
CSS Variable
var(--color-violet-600)
Tailwind Class
bg-violet-600

Accessibility Score

60/100

Good

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

On White

5.7:1

AA

On Black

3.69:1

AA Large
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-violet-600

Text

text-violet-600

Border

border-violet-600

Ring

ring-violet-600

Outline

outline-violet-600

Fill

fill-violet-600

Stroke

stroke-violet-600

From (gradient)

from-violet-600

Via (gradient)

via-violet-600

To (gradient)

to-violet-600

Placeholder

placeholder-violet-600

Caret

caret-violet-600

Accent

accent-violet-600

Decoration

decoration-violet-600

Shadow Color

shadow-violet-600

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'violet-600': '#7c3aed', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(124, 58, 237);

/* HSL */
background-color: hsl(262, 83%, 58%);

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

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

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

OKLCH — Modern Color Space

Lightness (L)

0.541

54% perceived brightness

Chroma (C)

0.247

Color intensity / saturation

Hue (H)

293°

Angle on perceptual hue wheel

oklch(0.541 0.247 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

Accessible primary action

Shade 600 of the Violet palette

Recommended Uses

  • Primary buttons on white (passes AA)
  • Active state fills
  • Bold text links
  • Form borders on focus
  • Strong icon fills

Avoid

Text on dark backgrounds — may fall below required contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #7C3AED

Frequently Asked Questions

What is the hex code for Tailwind Violet 600?
Tailwind Violet 600 has the hex code #7C3AED. Its RGB value is rgb(124, 58, 237) and its HSL value is hsl(262, 83%, 58%).
What Tailwind utility classes use Violet 600?
Use bg-violet-600 for backgrounds, text-violet-600 for text color, border-violet-600 for borders, and ring-violet-600 for focus rings. In Tailwind v4 the CSS variable var(--color-violet-600) is available natively.
Is Tailwind Violet 600 WCAG accessible?
Tailwind Violet 600 achieves a 5.7:1 contrast ratio on white (AA) and 3.69:1 on black (AA Large). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Violet 600?
Tailwind Violet 600 in OKLCH is oklch(0.541 0.247 293) — lightness 0.541, chroma 0.247, hue 293°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Violet 600 used for?
At shade 600, Tailwind Violet 600 is best described as "Accessible primary action". Recommended uses: Primary buttons on white (passes AA), Active state fills, Bold text links.