#7E2EB3#7E2EB3
#7E2EB3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.200 H 307.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2EB3 |
|---|---|
| RGB | rgb(126, 46, 179) |
| HSL | hsl(276, 59%, 44%) |
| HSV | hsv(276, 74%, 70%) |
| CMYK | cmyk(29.6%, 74.3%, 0%, 29.8%) |
| CIE-LAB | lab(37.20, 56.32, -55.66) |
| CIE-LCH | lch(37.20, 79.18, 315.34°) |
| OKLab | oklab(48.38% 0.123 -0.158) |
| OKLCH | oklch(48.38% 0.2 307.9) |
| XYZ | xyz(17.7162, 9.6445, 43.5674) |
| Luminance | 0.0964 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.52
Darkviolet
#9400D3
ΔE00 5.33
Rebeccapurple
#663399
ΔE00 5.35
Darkorchid
#9932CC
ΔE00 5.94
Blueviolet
#8A2BE2
ΔE00 6.64
Purply
#983FB2
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2EB3 #63B32E
analogous
#3C2EB3 #7E2EB3 #B32EA6
triadic
#7E2EB3 #B37E2E #2EB37E
tetradic
#7E2EB3 #B33C2E #63B32E #2EA6B3
square
#7E2EB3 #B33C2E #63B32E #2EA6B3
split-complementary
#7E2EB3 #A6B32E #2EB33C
monochromatic
#391552 #5C2182 #7E2EB3 #9D4DD1 #B77EDE
Accessibility & contrast
On white
7.17
#7E2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#7E2EB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2EB3
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2EB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2EB3 | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#754E6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e2eb3; /* rgb */ color: rgb(126, 46, 179); /* oklch */ color: oklch(48.4% 0.200 307.9);
Tailwind
colors: {
custom: {
50: '#a86fcb',
500: '#7e2eb3',
950: '#000000',
},
}SCSS
$custom: #7e2eb3; $custom-light: #a86fcb; $custom-dark: #000000;
JSON
{
"hex": "#7e2eb3",
"rgb": {
"r": 126,
"g": 46,
"b": 179
},
"hsl": {
"h": 276.09,
"s": 59.111,
"l": 44.118
},
"oklch": {
"l": 0.4838,
"c": 0.20025,
"h": 307.9
},
"luminance": 0.09644
}Semantic roles & 50–950 ramp
primary
#7E2EB3
secondary
#96C676
accent
#E24684
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82