#7E2EB2#7E2EB2
#7E2EB2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 308.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2EB2 |
|---|---|
| RGB | rgb(126, 46, 178) |
| HSL | hsl(276, 59%, 44%) |
| HSV | hsv(276, 74%, 70%) |
| CMYK | cmyk(29.2%, 74.2%, 0%, 30.2%) |
| CIE-LAB | lab(37.12, 56.10, -55.19) |
| CIE-LCH | lch(37.12, 78.69, 315.47°) |
| OKLab | oklab(48.31% 0.1232 -0.1566) |
| OKLCH | oklch(48.31% 0.199 308.2) |
| XYZ | xyz(17.6154, 9.6042, 43.0367) |
| Luminance | 0.0960 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.38
Rebeccapurple
#663399
ΔE00 5.27
Darkviolet
#9400D3
ΔE00 5.43
Darkorchid
#9932CC
ΔE00 6.01
Purply
#983FB2
ΔE00 6.73
Blueviolet
#8A2BE2
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2EB2 #62B22E
analogous
#3C2EB2 #7E2EB2 #B22EA4
triadic
#7E2EB2 #B27E2E #2EB27E
tetradic
#7E2EB2 #B23C2E #62B22E #2EA4B2
square
#7E2EB2 #B23C2E #62B22E #2EA4B2
split-complementary
#7E2EB2 #A4B22E #2EB23C
monochromatic
#391551 #5C2181 #7E2EB2 #9D4CD1 #B77DDD
Accessibility & contrast
On white
7.19
#7E2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#7E2EB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2EB2
7.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2EB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2EB2 | 1.00 | 7.19 | 2.92 | 7.19 |
| #FFFFFF | 7.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#764D6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e2eb2; /* rgb */ color: rgb(126, 46, 178); /* oklch */ color: oklch(48.3% 0.199 308.2);
Tailwind
colors: {
custom: {
50: '#a86fca',
500: '#7e2eb2',
950: '#000000',
},
}SCSS
$custom: #7e2eb2; $custom-light: #a86fca; $custom-dark: #000000;
JSON
{
"hex": "#7e2eb2",
"rgb": {
"r": 126,
"g": 46,
"b": 178
},
"hsl": {
"h": 276.364,
"s": 58.929,
"l": 43.922
},
"oklch": {
"l": 0.48305,
"c": 0.19927,
"h": 308.2
},
"luminance": 0.09604
}Semantic roles & 50–950 ramp
primary
#7E2EB2
secondary
#95C676
accent
#E24683
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82