#7E2EB6#7E2EB6
#7E2EB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.203 H 307.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2EB6 |
|---|---|
| RGB | rgb(126, 46, 182) |
| HSL | hsl(275, 60%, 45%) |
| HSV | hsv(275, 75%, 71%) |
| CMYK | cmyk(30.8%, 74.7%, 0%, 28.6%) |
| CIE-LAB | lab(37.42, 56.99, -57.07) |
| CIE-LCH | lch(37.42, 80.65, 314.96°) |
| OKLab | oklab(48.61% 0.1225 -0.1622) |
| OKLCH | oklch(48.61% 0.203 307.1) |
| XYZ | xyz(18.0229, 9.7672, 45.1827) |
| Luminance | 0.0977 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.93
Darkviolet
#9400D3
ΔE00 5.05
Rebeccapurple
#663399
ΔE00 5.62
Darkorchid
#9932CC
ΔE00 5.73
Blueviolet
#8A2BE2
ΔE00 6.21
Purply
#983FB2
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2EB6 #66B62E
analogous
#3A2EB6 #7E2EB6 #B62EAA
triadic
#7E2EB6 #B67E2E #2EB67E
tetradic
#7E2EB6 #B63A2E #66B62E #2EAAB6
square
#7E2EB6 #B63A2E #66B62E #2EAAB6
split-complementary
#7E2EB6 #AAB62E #2EB63A
monochromatic
#3A1554 #5C2285 #7E2EB6 #9C4FD2 #B880DF
Accessibility & contrast
On white
7.11
#7E2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#7E2EB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2EB6
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2EB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2EB6 | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#744F70
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7e2eb6; /* rgb */ color: rgb(126, 46, 182); /* oklch */ color: oklch(48.6% 0.203 307.1);
Tailwind
colors: {
custom: {
50: '#a86fcd',
500: '#7e2eb6',
950: '#000000',
},
}SCSS
$custom: #7e2eb6; $custom-light: #a86fcd; $custom-dark: #000000;
JSON
{
"hex": "#7e2eb6",
"rgb": {
"r": 126,
"g": 46,
"b": 182
},
"hsl": {
"h": 275.294,
"s": 59.649,
"l": 44.706
},
"oklch": {
"l": 0.4861,
"c": 0.2032,
"h": 307.1
},
"luminance": 0.09767
}Semantic roles & 50–950 ramp
primary
#7E2EB6
secondary
#99C878
accent
#E34586
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82