#7E2DC1#7E2DC1
#7E2DC1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.215 H 304.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2DC1 |
|---|---|
| RGB | rgb(126, 45, 193) |
| HSL | hsl(273, 62%, 47%) |
| HSV | hsv(273, 77%, 76%) |
| CMYK | cmyk(34.7%, 76.7%, 0%, 24.3%) |
| CIE-LAB | lab(38.13, 59.87, -62.39) |
| CIE-LCH | lch(38.13, 86.47, 313.82°) |
| OKLab | oklab(49.38% 0.121 -0.1778) |
| OKLCH | oklch(49.38% 0.215 304.2) |
| XYZ | xyz(19.1660, 10.1627, 51.3936) |
| Luminance | 0.1016 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.22
Blueviolet
#8A2BE2
ΔE00 4.75
Darkorchid
#9932CC
ΔE00 5.30
Burple
#6832E3
ΔE00 5.93
Purple Blue
#5D21D0
ΔE00 6.09
Bluey Purple
#6241C7
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2DC1 #70C12D
analogous
#342DC1 #7E2DC1 #C12DBA
triadic
#7E2DC1 #C17E2D #2DC17E
tetradic
#7E2DC1 #C1342D #70C12D #2DBAC1
square
#7E2DC1 #C1342D #70C12D #2DBAC1
split-complementary
#7E2DC1 #BAC12D #2DC134
monochromatic
#3D165E #5E218F #7E2DC1 #9C54D7 #B986E3
Accessibility & contrast
On white
6.92
#7E2DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#7E2DC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E2DC1
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2DC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2DC1 | 1.00 | 6.92 | 3.03 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#715376
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7e2dc1; /* rgb */ color: rgb(126, 45, 193); /* oklch */ color: oklch(49.4% 0.215 304.2);
Tailwind
colors: {
custom: {
50: '#a96fd5',
500: '#7e2dc1',
950: '#000000',
},
}SCSS
$custom: #7e2dc1; $custom-light: #a96fd5; $custom-dark: #000000;
JSON
{
"hex": "#7e2dc1",
"rgb": {
"r": 126,
"g": 45,
"b": 193
},
"hsl": {
"h": 272.838,
"s": 62.185,
"l": 46.667
},
"oklch": {
"l": 0.49376,
"c": 0.21502,
"h": 304.2
},
"luminance": 0.10163
}Semantic roles & 50–950 ramp
primary
#7E2DC1
secondary
#A1CC7E
accent
#E5438C
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83