#7E2BCA#7E2BCA
#7E2BCA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.226 H 302.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2BCA |
|---|---|
| RGB | rgb(126, 43, 202) |
| HSL | hsl(271, 65%, 48%) |
| HSV | hsv(271, 79%, 79%) |
| CMYK | cmyk(37.6%, 78.7%, 0%, 20.8%) |
| CIE-LAB | lab(38.60, 62.68, -66.88) |
| CIE-LCH | lch(38.60, 91.66, 313.14°) |
| OKLab | oklab(49.93% 0.1203 -0.191) |
| OKLCH | oklch(49.93% 0.226 302.2) |
| XYZ | xyz(20.1262, 10.4276, 56.8181) |
| Luminance | 0.1043 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.75
Darkviolet
#9400D3
ΔE00 3.83
Burple
#6832E3
ΔE00 4.90
Darkorchid
#9932CC
ΔE00 5.30
Bluish Purple
#703BE7
ΔE00 5.49
Violet (survey)
#9A0EEA
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2BCA #77CA2B
analogous
#2F2BCA #7E2BCA #CA2BC6
triadic
#7E2BCA #CA7E2B #2BCA7E
tetradic
#7E2BCA #CA2F2B #77CA2B #2BC6CA
square
#7E2BCA #CA2F2B #77CA2B #2BC6CA
split-complementary
#7E2BCA #C6CA2B #2BCA2F
monochromatic
#3F1665 #5F2098 #7E2BCA #9C57DB #BA89E6
Accessibility & contrast
On white
6.81
#7E2BCA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#7E2BCA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E2BCA
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2BCA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2BCA | 1.00 | 6.81 | 3.09 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6E567B
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7e2bca; /* rgb */ color: rgb(126, 43, 202); /* oklch */ color: oklch(49.9% 0.226 302.2);
Tailwind
colors: {
custom: {
50: '#aa6edb',
500: '#7e2bca',
950: '#000000',
},
}SCSS
$custom: #7e2bca; $custom-light: #aa6edb; $custom-dark: #000000;
JSON
{
"hex": "#7e2bca",
"rgb": {
"r": 126,
"g": 43,
"b": 202
},
"hsl": {
"h": 271.321,
"s": 64.898,
"l": 48.039
},
"oklch": {
"l": 0.49928,
"c": 0.22568,
"h": 302.2
},
"luminance": 0.10428
}Semantic roles & 50–950 ramp
primary
#7E2BCA
secondary
#A7D081
accent
#E84090
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83