Tailwind CSS v3 color
Tailwind violet-600 #7C3AED
Tailwind CSS v3's violet-600 is #7C3AED. It is a vivid violet in the violet family. In OKLCH it sits at lightness 0.541, chroma 0.247 and hue 293.0°. The nearest CSS named color is blueviolet (#8A2BE2), ΔE2000 3.3 away.
- Relative luminance
- 0.1343
- OKLCH L · C · h
- 0.541 · 0.247 · 293.0
- Best text
- White 5.69:1
- Hue family
- Violet
#7C3AED color codes
- HEX
#7C3AED- RGB
rgb(124, 58, 237)- HSL
hsl(262, 83%, 58%)- OKLCH
oklch(0.541 0.247 293.0)- OKLab
oklab(0.541 0.096 -0.227)- CIELAB (D65)
L* 43.40, a* 64.80, b* -79.09- XYZ (D65)
X 25.11, Y 13.42, Z 81.37- CMYK (naive)
cmyk(48%, 76%, 0%, 7%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Legibility
Contrast: is #7C3AED accessible?
White text on it reaches 5.69:1, passing AA. Black text manages only 3.68:1, enough for large text only.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
3.68:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +26
-
White text on it
5.69:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −82
-
As text on black
3.68:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −24
-
As text on white
5.69:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +77
Nearest versions that pass 4.5:1
-
For text on white
#7C3AED 5.69:1
It already reaches 5.69:1 on white, so no change is needed.
-
For text on black
#8A4DFF 4.58:1
Lightening its OKLCH lightness from 0.54 to 0.59 reaches 4.58:1 on black, keeping the hue.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #7C3AED live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #7C3AED
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7C3AED sits at step 600.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Tailwind CSS v3 violet scale
The real Tailwind palette, for comparison with the computed ramp above.
Gamut
How vivid #7C3AED can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.283; #7C3AED uses 87% of it. Display P3, which many recent phones and laptops show, reaches 0.304 there: 7% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.247
- sRGB edge
- 0.283
- Display P3 edge
- 0.304
- Rec. 2020 edge
- 0.308
- Dominant wavelength
- 443 nm
- Excitation purity
- 69%
- Chromaticity
- x 0.2094, y 0.1120
- This color#7C3AED
- Most vivid in sRGB#8020FF
- Most vivid in Display P3oklch(0.541 0.304 293.0)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #7c3aed;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.4656 0.0625 1); }
}
Mixing
Mixing #7C3AED
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#BE9DF6
- OKLab50%#B7A5FC
- OKLCH50%#B7A5FC
Black #000000
- sRGB50%#3E1D77
- OKLab50%#2C105C
- OKLCH50%#2C105C
Its complement #707600
- sRGB50%#765877
- OKLab50%#706991
- OKLCH50%#007E87
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7c3aed, white);
color: color-mix(in oklch, #7c3aed 50%, white);
In use
#7C3AED in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:15.69:1 Passes
- Link and body-size textText, 4.5:15.69:1 Passes
- Large headingLarge text, 3:15.69:1 Passes
- Icons, borders and focus ringsNon-text, 3:15.69:1 Passes
Dark page
- Button labelText, 4.5:15.69:1 Passes
- Link and body-size textText, 4.5:13.28:1 Fails
- Large headingLarge text, 3:13.28:1 Passes
- Icons, borders and focus ringsNon-text, 3:13.28:1 Passes
For text on this page, the nearest shade that passes is #905CFF 4.60:1
Color vision
How #7C3AED looks with color blindness
Achromatopsia changes it most, ΔE2000 31.0; deuteranopia changes it least, 16.4.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#0069F2 ΔE2000 17.5
Distinct
Reads as vivid blue
-
Deuteranopia
No working green (medium-wavelength) cones
#0063EA ΔE2000 16.4
Distinct
Reads as vivid blue
-
Tritanopia
No working blue (short-wavelength) cones
#586C92 ΔE2000 18.8
Distinct
Reads as muted blue
-
Achromatopsia
No cone color vision; lightness only
#676767 ΔE2000 31.0
Distinct
Reads as gray
Pairing check
Checked against its complement, #707600. Their lightness contrast is only 1.16:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #7C3AED · #707600 | 74.6 | Stays distinct |
| Protanopia | #0069F2 · #807000 | 62.3 | Stays distinct |
| Deuteranopia | #0063EA · #807212 | 61.6 | Stays distinct |
| Tritanopia | #586C92 · #796E63 | 22.0 | Stays distinct |
| Achromatopsia | #676767 · #717171 | 3.9 | Easily confused |
Harmony
Color harmonies for #7C3AED
Its complement is #707600, a soft yellow.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#7C3AED
- Complement#707600
Complementary
Open in Harmony Studio- −30°#145BFB
- Base#7C3AED
- +30°#AD13BF
Analogous
Open in Harmony Studio- Base#7C3AED
- +120°#AB5300
- +240°#008269
Triadic
Open in Harmony Studio- Base#7C3AED
- +150°#8E6800
- +210°#00870B
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-violet-600: #7c3aed;
}
// tailwind.config.js — already built in as violet-600;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
violet: { 600: '#7c3aed' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own violet-600; this pins the v3 value. */
--color-violet-600: oklch(0.541 0.247 293.0);
}
{
"color": {
"violet-600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4863, 0.2275, 0.9294],
"hex": "#7c3aed"
},
"$description": "Tailwind CSS v3 violet-600"
}
}
}
import SwiftUI
enum Palette {
static let violet600 = Color(.sRGB, red: 0.486, green: 0.227, blue: 0.929, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Violet600 = Color(0xFF7C3AED)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #7C3AED in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.