#7E39B8#7E39B8
#7E39B8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.192 H 305.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #7E39B8 |
|---|---|
| RGB | rgb(126, 57, 184) |
| HSL | hsl(273, 53%, 47%) |
| HSV | hsv(273, 69%, 72%) |
| CMYK | cmyk(31.5%, 69%, 0%, 27.8%) |
| CIE-LAB | lab(39.28, 52.62, -55.24) |
| CIE-LCH | lch(39.28, 76.29, 313.61°) |
| OKLab | oklab(49.98% 0.1111 -0.1568) |
| OKLCH | oklch(49.98% 0.192 305.3) |
| XYZ | xyz(18.7171, 10.8227, 46.4410) |
| Luminance | 0.1082 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.10
Blueviolet
#8A2BE2
ΔE00 5.85
Darkviolet
#9400D3
ΔE00 5.89
Purply
#983FB2
ΔE00 5.97
Bluey Purple
#6241C7
ΔE00 6.04
Rebeccapurple
#663399
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E39B8 #73B839
analogous
#3E39B8 #7E39B8 #B839B3
triadic
#7E39B8 #B87E39 #39B87E
tetradic
#7E39B8 #B83E39 #73B839 #39B3B8
square
#7E39B8 #B83E39 #73B839 #39B3B8
split-complementary
#7E39B8 #B3B839 #39B83E
monochromatic
#3E1C5B #5E2B89 #7E39B8 #9C60CE #B98FDC
Accessibility & contrast
On white
6.64
#7E39B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#7E39B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E39B8
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E39B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E39B8 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#095DB5
Tritanopia (blue-blind)
#745674
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7e39b8; /* rgb */ color: rgb(126, 57, 184); /* oklch */ color: oklch(50.0% 0.192 305.3);
Tailwind
colors: {
custom: {
50: '#a875ce',
500: '#7e39b8',
950: '#000000',
},
}SCSS
$custom: #7e39b8; $custom-light: #a875ce; $custom-dark: #000000;
JSON
{
"hex": "#7e39b8",
"rgb": {
"r": 126,
"g": 57,
"b": 184
},
"hsl": {
"h": 272.598,
"s": 52.697,
"l": 47.255
},
"oklch": {
"l": 0.49976,
"c": 0.1922,
"h": 305.3
},
"luminance": 0.10823
}Semantic roles & 50–950 ramp
primary
#7E39B8
secondary
#A4C786
accent
#DC4C8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82