#7E39BA#7E39BA
#7E39BA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.1% C 0.194 H 304.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7E39BA |
|---|---|
| RGB | rgb(126, 57, 186) |
| HSL | hsl(272, 53%, 48%) |
| HSV | hsv(272, 69%, 73%) |
| CMYK | cmyk(32.3%, 69.4%, 0%, 27.1%) |
| CIE-LAB | lab(39.42, 53.09, -56.18) |
| CIE-LCH | lch(39.42, 77.30, 313.38°) |
| OKLab | oklab(50.12% 0.1108 -0.1596) |
| OKLCH | oklch(50.12% 0.194 304.8) |
| XYZ | xyz(18.9282, 10.9071, 47.5530) |
| Luminance | 0.1091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.99
Blueviolet
#8A2BE2
ΔE00 5.57
Darkviolet
#9400D3
ΔE00 5.76
Bluey Purple
#6241C7
ΔE00 5.85
Purply
#983FB2
ΔE00 6.09
Rebeccapurple
#663399
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E39BA #75BA39
analogous
#3E39BA #7E39BA #BA39B5
triadic
#7E39BA #BA7E39 #39BA7E
tetradic
#7E39BA #BA3E39 #75BA39 #39B5BA
square
#7E39BA #BA3E39 #75BA39 #39B5BA
split-complementary
#7E39BA #B5BA39 #39BA3E
monochromatic
#3F1C5C #5E2B8B #7E39BA #9C61CF #B990DD
Accessibility & contrast
On white
6.60
#7E39BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#7E39BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E39BA
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E39BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E39BA | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#735775
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7e39ba; /* rgb */ color: rgb(126, 57, 186); /* oklch */ color: oklch(50.1% 0.194 304.8);
Tailwind
colors: {
custom: {
50: '#a875d0',
500: '#7e39ba',
950: '#000000',
},
}SCSS
$custom: #7e39ba; $custom-light: #a875d0; $custom-dark: #000000;
JSON
{
"hex": "#7e39ba",
"rgb": {
"r": 126,
"g": 57,
"b": 186
},
"hsl": {
"h": 272.093,
"s": 53.086,
"l": 47.647
},
"oklch": {
"l": 0.50123,
"c": 0.19432,
"h": 304.8
},
"luminance": 0.10907
}Semantic roles & 50–950 ramp
primary
#7E39BA
secondary
#A5C887
accent
#DC4B8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82