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